diff --git a/src/gui/event-editor/gcal-summary-section.c b/src/gui/event-editor/gcal-summary-section.c index 7e4f182e..81c09792 100644 --- a/src/gui/event-editor/gcal-summary-section.c +++ b/src/gui/event-editor/gcal-summary-section.c @@ -123,6 +123,19 @@ gcal_event_editor_section_iface_init (GcalEventEditorSectionInterface *iface) } +/* + * GtkWidget overrides + */ + +static gboolean +gcal_summary_section_grab_focus (GtkWidget *widget) +{ + GcalSummarySection *self = GCAL_SUMMARY_SECTION (widget); + + return gtk_widget_grab_focus (GTK_WIDGET (self->summary_entry)); +} + + /* * GObject overrides */ @@ -145,6 +158,8 @@ gcal_summary_section_class_init (GcalSummarySectionClass *klass) object_class->finalize = gcal_summary_section_finalize; + widget_class->grab_focus = gcal_summary_section_grab_focus; + gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/calendar/ui/event-editor/gcal-summary-section.ui"); gtk_widget_class_bind_template_child (widget_class, GcalSummarySection, location_entry);