aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.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/event-page.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/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index c9f1891fdc..6b6736f041 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -31,6 +31,7 @@
#include <glade/glade.h>
#include <gal/widgets/e-unicode.h>
#include <gal/widgets/e-categories.h>
+#include "e-util/e-categories-config.h"
#include "e-util/e-dialog-widgets.h"
#include "widgets/misc/e-dateedit.h"
#include "cal-util/timeutil.h"
@@ -85,6 +86,7 @@ static void event_page_init (EventPage *epage);
static void event_page_destroy (GtkObject *object);
static GtkWidget *event_page_get_widget (CompEditorPage *page);
+static void event_page_focus_main_widget (CompEditorPage *page);
static void event_page_fill_widgets (CompEditorPage *page, CalComponent *comp);
static void event_page_fill_component (CompEditorPage *page, CalComponent *comp);
static void event_page_set_summary (CompEditorPage *page, const char *summary);
@@ -139,6 +141,7 @@ event_page_class_init (EventPageClass *class)
parent_class = gtk_type_class (TYPE_COMP_EDITOR_PAGE);
editor_page_class->get_widget = event_page_get_widget;
+ editor_page_class->focus_main_widget = event_page_focus_main_widget;
editor_page_class->fill_widgets = event_page_fill_widgets;
editor_page_class->fill_component = event_page_fill_component;
editor_page_class->set_summary = event_page_set_summary;
@@ -225,6 +228,19 @@ event_page_get_widget (CompEditorPage *page)
return priv->main;
}
+/* focus_main_widget handler for the event page */
+static void
+event_page_focus_main_widget (CompEditorPage *page)
+{
+ EventPage *epage;
+ EventPagePrivate *priv;
+
+ epage = EVENT_PAGE (page);
+ priv = epage->priv;
+
+ gtk_widget_grab_focus (priv->summary);
+}
+
/* Checks if the event's time starts and ends at midnight, and sets the
*"all day event" box accordingly.
*/