diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-18 18:37:44 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-18 18:37:44 +0800 |
commit | 9480887536f318abc6f8540ca2a8d9114becc6e3 (patch) | |
tree | 05c8412a6191402351b5034462504c850dd6829d /calendar/gui/e-week-view-event-item.c | |
parent | 451cc1a07a7010fba205ffebfb7778b284f524cf (diff) | |
download | gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar.gz gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar.bz2 gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar.lz gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar.xz gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.tar.zst gsoc2013-evolution-9480887536f318abc6f8540ca2a8d9114becc6e3.zip |
moved duplicated code to...
2003-07-18 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.[ch]:
* gui/e-week-view.[ch]: moved duplicated code to...
* gui/e-cal-view.[ch]: ...here.
(e_cal_view_get_calendar, e_cal_view_set_calendar): new functions.
* gui/e-week-view-event-item.c (e_week_event_item_double_click):
* gui/gnome-cal.c (setup_widgets): adapted to changes in views.
svn path=/trunk/; revision=21865
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r-- | calendar/gui/e-week-view-event-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index 749bcbad65..741ec913f5 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -856,6 +856,7 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, EWeekView *week_view; EWeekViewEvent *event; GnomeCanvasItem *item; + GnomeCalendar *calendar; item = GNOME_CANVAS_ITEM (wveitem); @@ -867,8 +868,9 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, e_week_view_stop_editing_event (week_view); - if (week_view->calendar) - gnome_calendar_edit_object (week_view->calendar, event->comp, FALSE); + calendar = e_cal_view_get_calendar (E_CAL_VIEW (week_view)); + if (calendar) + gnome_calendar_edit_object (calendar, event->comp, FALSE); else g_warning ("Calendar not set"); |