diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-01-16 07:41:35 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-01-16 07:41:35 +0800 |
commit | 3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5 (patch) | |
tree | 196a480e72939b94a299a6b2479d17d319238544 /calendar/gui/e-meeting-time-sel.c | |
parent | df8a6bcc73435646ed6905b8bb3a1c2df5dee4b3 (diff) | |
download | gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar.gz gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar.bz2 gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar.lz gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar.xz gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.tar.zst gsoc2013-evolution-3ee4a2d5c5ce64a6f6ce3273cb1b9aa52c311ad5.zip |
Create accel groups for popup menus. Fixes crash.
2003-01-15 Hans Petter Jansson <hpj@ximian.com>
* gui/e-meeting-time-sel.c (e_meeting_time_selector_construct):
Create accel groups for popup menus. Fixes crash.
* gui/e-date-time-list.[ch]: Implement EDateTimeList as
CalComponentDateTime list with a GtkTreeModel interface.
* gui/Makefile.am: Add e-date-time-list.[ch].
* gui/dialogs/recurrence-page.c: Use GtkTreeView with the new
EDateTimeList as model for the exception list.
svn path=/trunk/; revision=19490
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r-- | calendar/gui/e-meeting-time-sel.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index 557fcc068b..ad52ecc5bf 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -458,15 +458,16 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingModel *em mts->options_menu = gtk_menu_new (); gtk_menu_attach_to_widget (GTK_MENU (mts->options_menu), mts->options_button, e_meeting_time_selector_options_menu_detacher); -#if 0 - menu_accel_group = gtk_menu_ensure_uline_accel_group (GTK_MENU (mts->options_menu)); -#endif + + menu_accel_group = gtk_accel_group_new (); + gtk_menu_set_accel_group (GTK_MENU (mts->options_menu), menu_accel_group); menuitem = gtk_check_menu_item_new_with_label (""); accel_key = gtk_label_parse_uline (GTK_LABEL (GTK_BIN (menuitem)->child), _("Show _Only Working Hours")); gtk_menu_append (GTK_MENU (mts->options_menu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem), mts->working_hours_only); + gtk_widget_add_accelerator (menuitem, "activate", menu_accel_group, accel_key, 0, 0); gtk_widget_add_accelerator (menuitem, "activate", menu_accel_group, @@ -555,9 +556,9 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingModel *em mts->autopick_menu = gtk_menu_new (); gtk_menu_attach_to_widget (GTK_MENU (mts->autopick_menu), mts->autopick_button, e_meeting_time_selector_autopick_menu_detacher); -#if 0 - menu_accel_group = gtk_menu_ensure_uline_accel_group (GTK_MENU (mts->autopick_menu)); -#endif + + menu_accel_group = gtk_accel_group_new (); + gtk_menu_set_accel_group (GTK_MENU (mts->autopick_menu), menu_accel_group); menuitem = gtk_radio_menu_item_new_with_label (NULL, ""); mts->autopick_all_item = menuitem; |