aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-07-05 05:25:30 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-07-05 05:25:30 +0800
commitdcb5ea4101ffdd79ff7849867f8c32426e88da7f (patch)
tree23683de8db80a5cfba3a779d45d2f0c4ccc10e68 /calendar/gui/dialogs/comp-editor.c
parent1e5fac65aa65ed25c18ead0a13552e5ec98ed53f (diff)
downloadgsoc2013-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/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index ea42980c2c..829b536ded 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -264,6 +264,7 @@ comp_editor_append_page (CompEditor *editor,
CompEditorPrivate *priv;
GtkWidget *page_widget;
GtkWidget *label_widget;
+ gboolean is_first_page;
g_return_if_fail (editor != NULL);
g_return_if_fail (IS_COMP_EDITOR (editor));
@@ -289,6 +290,8 @@ comp_editor_append_page (CompEditor *editor,
label_widget = gtk_label_new (label);
+ is_first_page = (priv->pages == NULL);
+
priv->pages = g_list_append (priv->pages, page);
gtk_notebook_append_page (priv->notebook, page_widget, label_widget);
@@ -301,6 +304,12 @@ comp_editor_append_page (CompEditor *editor,
GTK_SIGNAL_FUNC (page_summary_changed_cb), editor);
gtk_signal_connect (GTK_OBJECT (page), "dates_changed",
GTK_SIGNAL_FUNC (page_dates_changed_cb), editor);
+
+ /* The first page is the main page of the editor, so we ask it to focus
+ * its main widget.
+ */
+ if (is_first_page)
+ comp_editor_page_focus_main_widget (page);
}
/**