diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-07-14 03:29:03 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-07-14 03:29:03 +0800 |
commit | 9cafe346c61294495cc42a8124257469e28c6879 (patch) | |
tree | 131f92a566f3ddadaeeb7d7623df10184680458e /widgets/misc/e-dateedit.c | |
parent | 5d0da70cf2093c2d5381e6b5e9f9cb50d664fcde (diff) | |
download | gsoc2013-evolution-9cafe346c61294495cc42a8124257469e28c6879.tar.gz gsoc2013-evolution-9cafe346c61294495cc42a8124257469e28c6879.tar.zst gsoc2013-evolution-9cafe346c61294495cc42a8124257469e28c6879.zip |
Added a handler for GtkWidget::mnemonic_activate().
2003-07-11 Federico Mena Quintero <federico@ximian.com>
* e-dateedit.c (e_date_edit_mnemonic_activate): Added a handler
for GtkWidget::mnemonic_activate().
* e-url-entry.c (mnemonic_activate): Likewise.
svn path=/trunk/; revision=21804
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index e519981e07..33a3e0bc33 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -138,6 +138,8 @@ static void e_date_edit_class_init (EDateEditClass *class); static void e_date_edit_init (EDateEdit *dedit); static void create_children (EDateEdit *dedit); static void e_date_edit_dispose (GObject *object); +static gboolean e_date_edit_mnemonic_activate (GtkWidget *widget, + gboolean group_cycling); static void e_date_edit_grab_focus (GtkWidget *widget); static gint on_date_entry_key_press (GtkWidget *widget, @@ -252,6 +254,7 @@ e_date_edit_class_init (EDateEditClass *class) object_class->dispose = e_date_edit_dispose; + widget_class->mnemonic_activate = e_date_edit_mnemonic_activate; widget_class->grab_focus = e_date_edit_grab_focus; class->changed = NULL; @@ -470,6 +473,14 @@ e_date_edit_dispose (GObject *object) } +/* GtkWidget::mnemonic_activate() handler for the EDateEdit */ +static gboolean +e_date_edit_mnemonic_activate (GtkWidget *widget, gboolean group_cycling) +{ + e_date_edit_grab_focus (widget); + return TRUE; +} + /* Grab_focus handler for the EDateEdit. If the date field is being shown, we grab the focus to that, otherwise we grab it to the time field. */ static void |