diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-07-05 05:25:30 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-07-05 05:25:30 +0800 |
commit | dcb5ea4101ffdd79ff7849867f8c32426e88da7f (patch) | |
tree | 23683de8db80a5cfba3a779d45d2f0c4ccc10e68 /calendar/gui/dialogs/alarm-page.c | |
parent | 1e5fac65aa65ed25c18ead0a13552e5ec98ed53f (diff) | |
download | gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar.gz gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar.bz2 gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar.lz gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar.xz gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.tar.zst gsoc2013-evolution-dcb5ea4101ffdd79ff7849867f8c32426e88da7f.zip |
Fixes bug #4018 and what would be the analogous bugs for the other
2001-07-04 Federico Mena Quintero <federico@ximian.com>
Fixes bug #4018 and what would be the analogous bugs for the other
component editors.
* gui/dialogs/comp-editor-page.h (CompEditorPageClass): New
virtual method "::focus_main_widget()".
* gui/dialogs/comp-editor-page.c
(comp_editor_page_focus_main_widget): New function.
* gui/dialogs/comp-editor.c (comp_editor_append_page): If we are
inserting the main page, ask it to focus its main widget.
* gui/dialogs/alarm-page.c (alarm_page_focus_main_widget):
Implemented.
* gui/dialogs/event-page.c (event_page_focus_main_widget):
Implemented.
#include "e-util/e-categories-config.h".
* gui/dialogs/meeting-page.c (meeting_page_focus_main_widget):
Implemented.
* gui/dialogs/recurrence-page.c
(recurrence_page_focus_main_widget): Implemented.
* gui/dialogs/task-details-page.c
(task_details_page_focus_main_widget): Implemented.
* gui/dialogs/task-page.c (task_page_focus_main_widget):
Implemented.
svn path=/trunk/; revision=10784
Diffstat (limited to 'calendar/gui/dialogs/alarm-page.c')
-rw-r--r-- | calendar/gui/dialogs/alarm-page.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/alarm-page.c b/calendar/gui/dialogs/alarm-page.c index 3946c15310..e6e09d4d3a 100644 --- a/calendar/gui/dialogs/alarm-page.c +++ b/calendar/gui/dialogs/alarm-page.c @@ -77,6 +77,7 @@ static void alarm_page_init (AlarmPage *apage); static void alarm_page_destroy (GtkObject *object); static GtkWidget *alarm_page_get_widget (CompEditorPage *page); +static void alarm_page_focus_main_widget (CompEditorPage *page); static void alarm_page_fill_widgets (CompEditorPage *page, CalComponent *comp); static void alarm_page_fill_component (CompEditorPage *page, CalComponent *comp); static void alarm_page_set_summary (CompEditorPage *page, const char *summary); @@ -131,6 +132,7 @@ alarm_page_class_init (AlarmPageClass *class) parent_class = gtk_type_class (TYPE_COMP_EDITOR_PAGE); editor_page_class->get_widget = alarm_page_get_widget; + editor_page_class->focus_main_widget = alarm_page_focus_main_widget; editor_page_class->fill_widgets = alarm_page_fill_widgets; editor_page_class->fill_component = alarm_page_fill_component; editor_page_class->set_summary = alarm_page_set_summary; @@ -241,6 +243,19 @@ alarm_page_get_widget (CompEditorPage *page) return priv->main; } +/* focus_main_widget handler for the alarm page */ +static void +alarm_page_focus_main_widget (CompEditorPage *page) +{ + AlarmPage *apage; + AlarmPagePrivate *priv; + + apage = ALARM_PAGE (page); + priv = apage->priv; + + gtk_widget_grab_focus (priv->action); +} + /* Fills the widgets with default values */ static void clear_widgets (AlarmPage *apage) |