diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 17:29:18 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 17:29:18 +0800 |
commit | 609a0591014db0f10e981388962c328a3f2f935d (patch) | |
tree | d1ecb61d8c2ba2cd5904fc708a8e3d19b5107b97 /calendar/gui/e-calendar-view.c | |
parent | 1e2901cd509edbbe74b5effd5c44a7570100ca85 (diff) | |
download | gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.gz gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.tar.zst gsoc2013-evolution-609a0591014db0f10e981388962c328a3f2f935d.zip |
fixes #271810
svn path=/trunk/; revision=31159
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); |