gtk/gtkcalendar.c: Some significant changes, including: - No longer draw
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org> * gtk/gtkcalendar.h: gtk/gtkcalendar.c: Some significant changes, including: - No longer draw focus around entire widget, only around the day which has focus - Draw relief around entire widget like originally planned - Show header and day names by default - Move data private to the widget out of GtkCalendar struct and only point to it with a gpointer - Remove some old unused variables from GtkCalendar struct
This commit is contained in:
committed by
Shawn Amundson
parent
89a9da8a21
commit
16786ffbf7
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
@ -1,3 +1,15 @@
|
|||||||
|
Sun Oct 4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkcalendar.h:
|
||||||
|
gtk/gtkcalendar.c: Some significant changes, including:
|
||||||
|
- No longer draw focus around entire widget, only around
|
||||||
|
the day which has focus
|
||||||
|
- Draw relief around entire widget like originally planned
|
||||||
|
- Show header and day names by default
|
||||||
|
- Move data private to the widget out of GtkCalendar struct
|
||||||
|
and only point to it with a gpointer
|
||||||
|
- Remove some old unused variables from GtkCalendar struct
|
||||||
|
|
||||||
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
Sun Oct 4 17:45:43 BST 1998 Tony Gale <gale@gtk.org>
|
||||||
|
|
||||||
* docs/gtk_tut.sgml: update I've had sat around:
|
* docs/gtk_tut.sgml: update I've had sat around:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -53,12 +53,8 @@ typedef enum
|
|||||||
|
|
||||||
struct _GtkCalendar
|
struct _GtkCalendar
|
||||||
{
|
{
|
||||||
/* This widget is derived from GtkWidget */
|
|
||||||
GtkWidget widget;
|
GtkWidget widget;
|
||||||
|
|
||||||
GdkWindow *header_win, *day_name_win, *main_win, *week_win;
|
|
||||||
gint header_h, day_name_h, main_h;
|
|
||||||
|
|
||||||
GtkStyle *header_style;
|
GtkStyle *header_style;
|
||||||
GtkStyle *label_style;
|
GtkStyle *label_style;
|
||||||
|
|
||||||
@ -74,44 +70,12 @@ struct _GtkCalendar
|
|||||||
GtkCalendarDisplayOptions display_flags;
|
GtkCalendarDisplayOptions display_flags;
|
||||||
GdkColor marked_date_color[31];
|
GdkColor marked_date_color[31];
|
||||||
|
|
||||||
/* Header Information */
|
|
||||||
GdkWindow *arrow_win[4];
|
|
||||||
gint arrow_state[4];
|
|
||||||
gint arrow_width;
|
|
||||||
gint max_month_width;
|
|
||||||
gint max_year_width;
|
|
||||||
|
|
||||||
/* Other info */
|
|
||||||
gint calstarty, calnumrows;
|
|
||||||
|
|
||||||
/* Style parameters for this widget */
|
|
||||||
GdkGC *gc;
|
GdkGC *gc;
|
||||||
GdkCursor *cross;
|
|
||||||
|
|
||||||
gint day_width;
|
guint highlight_row;
|
||||||
gint week_width;
|
guint highlight_col;
|
||||||
GdkRectangle header_button[4];
|
|
||||||
GdkRectangle rect_days[6][7];
|
|
||||||
|
|
||||||
gint highlight_row;
|
gpointer private_data;
|
||||||
gint highlight_col;
|
|
||||||
|
|
||||||
gint min_day_width;
|
|
||||||
gint max_day_char_width;
|
|
||||||
gint max_day_char_ascent;
|
|
||||||
gint max_day_char_descent;
|
|
||||||
gint max_label_char_ascent;
|
|
||||||
gint max_label_char_descent;
|
|
||||||
gint max_week_char_width;
|
|
||||||
/* flags */
|
|
||||||
unsigned int dirty_header:1;
|
|
||||||
unsigned int dirty_day_names:1;
|
|
||||||
unsigned int dirty_main:1;
|
|
||||||
unsigned int dirty_week:1;
|
|
||||||
unsigned int frozen;
|
|
||||||
|
|
||||||
gint week_num_w;
|
|
||||||
gint font_width_day_name, font_width_day;
|
|
||||||
char grow_space [32];
|
char grow_space [32];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user