diff options
author | Mathias Hasselmann <hasselmm@src.gnome.org> | 2007-12-28 09:39:34 +0000 |
---|---|---|
committer | Mathias Hasselmann <hasselmm@src.gnome.org> | 2007-12-28 09:39:34 +0000 |
commit | c32421418a398e9218d4fea7afc58842245d4ca1 (patch) | |
tree | 5a73f09334763b380b2f0f09f49ec65152ecfce0 /gtk/gtkcalendar.h | |
parent | 6fda2b46a7dbe1c986b023be04ef064933e34fae (diff) | |
download | gtk+-c32421418a398e9218d4fea7afc58842245d4ca1.tar.gz |
Add GTK_CALENDAR_SHOW_DETAILS display flag, which chooses if details are shown within the widget, or jst as tooltip.
* gtk/gtkcalendar.c, gtk/gtkcalendar.h: Add "show-details" property
aka. GTK_CALENDAR_SHOW_DETAILS, and use it.
* tests/testcalendar.c: Test GTK_CALENDAR_SHOW_DETAILS. Reduce padding
in flags vbox.
svn path=/trunk/; revision=19267
Diffstat (limited to 'gtk/gtkcalendar.h')
-rw-r--r-- | gtk/gtkcalendar.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h index c6a0afbd4a..5fa887d39b 100644 --- a/gtk/gtkcalendar.h +++ b/gtk/gtkcalendar.h @@ -51,13 +51,28 @@ typedef struct _GtkCalendarClass GtkCalendarClass; typedef struct _GtkCalendarPrivate GtkCalendarPrivate; +/** + * GtkCalendarDisplayOptions: + * @GTK_CALENDAR_SHOW_HEADING: Specifies that the month and year should be displayed. + * @GTK_CALENDAR_SHOW_DAY_NAMES: Specifies that three letter day descriptions should be present. + * @GTK_CALENDAR_NO_MONTH_CHANGE: Prevents the user from switching months with the calendar. + * @GTK_CALENDAR_SHOW_WEEK_NUMBERS: Displays each week numbers of the current year, down the + * left side of the calendar. + * @GTK_CALENDAR_WEEK_START_MONDAY: Since GTK+ 2.4, this option is deprecated and ignored by GTK+. + * The information on which day the calendar week starts is derived from the locale. + * @GTK_CALENDAR_SHOW_DETAILS: Just show an indicator, not the full details + * text when details are provided. See gtk_calendar_set_detail_func(). + * + * These options can be used to influence the display and behaviour of a #GtkCalendar. + */ typedef enum { GTK_CALENDAR_SHOW_HEADING = 1 << 0, GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1, GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2, GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3, - GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4 + GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4, + GTK_CALENDAR_SHOW_DETAILS = 1 << 5, } GtkCalendarDisplayOptions; /** |