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 /tests/testcalendar.c | |
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 'tests/testcalendar.c')
-rw-r--r-- | tests/testcalendar.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/testcalendar.c b/tests/testcalendar.c index 0c751fbdd0..d3cf08c832 100644 --- a/tests/testcalendar.c +++ b/tests/testcalendar.c @@ -30,9 +30,9 @@ typedef struct _CalendarData { - GtkWidget *calendar_widget; - GtkWidget *flag_checkboxes[5]; - gboolean settings[5]; + GtkWidget *calendar_widget; + GtkWidget *flag_checkboxes[6]; + gboolean settings[6]; GtkWidget *font_dialog; GtkWidget *window; GtkWidget *prev2_sig; @@ -431,6 +431,7 @@ create_calendar(void) { FALSE, "No Month _Change" }, { TRUE, "Show _Week Numbers" }, { FALSE, "Week Start _Monday" }, + { TRUE, "Show De_tails" }, }; calendar_data.window = NULL; @@ -602,7 +603,7 @@ create_calendar(void) gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); - toggle = gtk_check_button_new_with_mnemonic ("_Show Details"); + toggle = gtk_check_button_new_with_mnemonic ("_Use Details"); g_signal_connect (toggle, "toggled", G_CALLBACK(calendar_toggle_details), &calendar_data); @@ -610,7 +611,7 @@ create_calendar(void) /* Build the Right frame with the flags in */ - vbox = gtk_vbox_new(FALSE, DEF_PAD_SMALL); + vbox = gtk_vbox_new(FALSE, 0); frame = create_expander ("<b>Flags</b>", vbox, 1, 0); gtk_box_pack_start (GTK_BOX (rpane), frame, TRUE, TRUE, 0); |