diff options
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 9ebfa248d5..95eca81959 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1791,6 +1791,13 @@ e_calendar_view_new_appointment (ECalendarView *cal_view) e_calendar_view_new_appointment_full (cal_view, FALSE, FALSE); } +/* Ensures the calendar is selected */ +static void +object_created_cb (CompEditor *ce, ECalendarView *cal_view) +{ + g_signal_emit_by_name (cal_view, "user_created"); +} + static void open_event_with_flags (ECalendarView *cal_view, ECal *client, icalcomponent *icalcomp, guint32 flags) { @@ -1811,6 +1818,8 @@ open_event_with_flags (ECalendarView *cal_view, ECal *client, icalcomponent *ica ee = event_editor_new (client, flags); ce = COMP_EDITOR (ee); + g_signal_connect (ce, "object_created", G_CALLBACK (object_created_cb), cal_view); + comp = e_cal_component_new (); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (icalcomp)); comp_editor_edit_comp (ce, comp); |