diff options
author | CDT 1998 Shawn T. Amundson <amundson@gtk.org> | 1998-10-04 23:07:04 +0000 |
---|---|---|
committer | Shawn Amundson <amundson@src.gnome.org> | 1998-10-04 23:07:04 +0000 |
commit | 16786ffbf76d5fb80cf0eee49ad15be289b675b6 (patch) | |
tree | 03fa31e4c9c9afbd0416116f878faa44a17a29d1 /gtk/gtkcalendar.h | |
parent | 89a9da8a212c8b2c5f0e781d113c6345bdfc577a (diff) | |
download | gtk+-16786ffbf76d5fb80cf0eee49ad15be289b675b6.tar.gz |
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
Diffstat (limited to 'gtk/gtkcalendar.h')
-rw-r--r-- | gtk/gtkcalendar.h | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h index c49f373eff..31b0588c6c 100644 --- a/gtk/gtkcalendar.h +++ b/gtk/gtkcalendar.h @@ -53,12 +53,8 @@ typedef enum struct _GtkCalendar { - /* This widget is derived from GtkWidget */ GtkWidget widget; - GdkWindow *header_win, *day_name_win, *main_win, *week_win; - gint header_h, day_name_h, main_h; - GtkStyle *header_style; GtkStyle *label_style; @@ -74,44 +70,12 @@ struct _GtkCalendar GtkCalendarDisplayOptions display_flags; 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; - GdkCursor *cross; - - gint day_width; - gint week_width; - GdkRectangle header_button[4]; - GdkRectangle rect_days[6][7]; - - gint highlight_row; - 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; + guint highlight_row; + guint highlight_col; - gint week_num_w; - gint font_width_day_name, font_width_day; + gpointer private_data; char grow_space [32]; }; |