From 66492867d6c19d5378ff2b25147b662cf8e528a1 Mon Sep 17 00:00:00 2001 From: Anna Marie Dirks Date: Tue, 17 Oct 2000 15:47:06 +0000 Subject: Added focus to the general_summary text entry. 2000-10-17 Anna Marie Dirks * gui/event-editor.c: Added focus to the general_summary text entry. svn path=/trunk/; revision=5964 --- calendar/gui/event-editor.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c index 7575e1f34d..d70f58e0f6 100644 --- a/calendar/gui/event-editor.c +++ b/calendar/gui/event-editor.c @@ -436,6 +436,8 @@ get_widgets (EventEditor *ee) && priv->exception_date); } + + static const int classification_map[] = { CAL_COMPONENT_CLASS_PUBLIC, CAL_COMPONENT_CLASS_PRIVATE, @@ -552,6 +554,7 @@ clear_widgets (EventEditor *ee) now = time (NULL); /* Summary, description */ + e_dialog_editable_set (priv->general_summary, NULL); e_dialog_editable_set (priv->description, NULL); @@ -1507,6 +1510,11 @@ event_editor_construct (EventEditor *ee) gtk_signal_connect (GTK_OBJECT (priv->app), "delete_event", GTK_SIGNAL_FUNC (app_delete_event_cb), ee); + + /* Add focus to the summary entry */ + + gtk_widget_grab_focus(GTK_OBJECT (priv->general_summary)); + /* Show the dialog */ gtk_widget_show (priv->app); -- cgit v1.2.3