diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-24 20:17:03 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-24 20:17:03 +0800 |
commit | 1f382b36fae7bbe91d39c52d7315865b1771d462 (patch) | |
tree | f0788fe83703a979a49070ae9e88b95bb10f2ba7 /calendar/gui/e-week-view-event-item.c | |
parent | 4068b19a6f21ee830eeb6754144493d5e6b36036 (diff) | |
download | gsoc2013-evolution-1f382b36fae7bbe91d39c52d7315865b1771d462.tar.gz gsoc2013-evolution-1f382b36fae7bbe91d39c52d7315865b1771d462.tar.zst gsoc2013-evolution-1f382b36fae7bbe91d39c52d7315865b1771d462.zip |
removed.
2003-07-24 Rodrigo Moya <rodrigo@ximian.com>
* gui/e-day-view.c (e_day_view_delete_event,
e_day_view_delete_event_internal):
* gui/e-week-view.c (e_week_view_delete_event,
e_week_view_delete_event_internal): removed.
* gui/e-cal-view.[ch] (e_cal_view_delete_selected_event): renamed
from e_cal_view_delete_event_internal.
(e_cal_view_delete_selected_events): new function.
* gui/gnome-cal.c (gnome_calendar_delete_selection): call
e_cal_view_delete_selected_events().
* gui/e-week-view-event-item.c (e_week_view_event_item_get_position,
e_week_view_event_item_button_press):
* gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event):
* gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event):
adapted to changes in E*ViewPosition.
svn path=/trunk/; revision=21943
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r-- | calendar/gui/e-week-view-event-item.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index 741ec913f5..37318141a9 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -84,7 +84,7 @@ static gboolean e_week_view_event_item_button_release (EWeekViewEventItem *wveit GdkEvent *event); static gboolean e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, GdkEvent *bevent); -static EWeekViewPosition e_week_view_event_item_get_position (EWeekViewEventItem *wveitem, +static ECalViewPosition e_week_view_event_item_get_position (EWeekViewEventItem *wveitem, gdouble x, gdouble y); @@ -756,7 +756,7 @@ e_week_view_event_item_button_press (EWeekViewEventItem *wveitem, GdkEvent *bevent) { EWeekView *week_view; - EWeekViewPosition pos; + ECalViewPosition pos; EWeekViewEvent *event; EWeekViewEventSpan *span; GnomeCanvasItem *item; @@ -777,7 +777,7 @@ e_week_view_event_item_button_press (EWeekViewEventItem *wveitem, pos = e_week_view_event_item_get_position (wveitem, bevent->button.x, bevent->button.y); - if (pos == E_WEEK_VIEW_POS_NONE) + if (pos == E_CAL_VIEW_POS_NONE) return FALSE; if (bevent->button.button == 1) { @@ -878,7 +878,7 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem, } -static EWeekViewPosition +static ECalViewPosition e_week_view_event_item_get_position (EWeekViewEventItem *wveitem, gdouble x, gdouble y) @@ -889,7 +889,7 @@ e_week_view_event_item_get_position (EWeekViewEventItem *wveitem, item = GNOME_CANVAS_ITEM (wveitem); week_view = E_WEEK_VIEW (GTK_WIDGET (item->canvas)->parent); - g_return_val_if_fail (E_IS_WEEK_VIEW (week_view), E_WEEK_VIEW_POS_NONE); + g_return_val_if_fail (E_IS_WEEK_VIEW (week_view), E_CAL_VIEW_POS_NONE); #if 0 g_print ("In e_week_view_event_item_get_position item: %g,%g %g,%g point: %g,%g\n", item->x1, item->y1, item->x2, item->y2, x, y); @@ -897,20 +897,20 @@ e_week_view_event_item_get_position (EWeekViewEventItem *wveitem, if (x < item->x1 + E_WEEK_VIEW_EVENT_L_PAD || x >= item->x2 - E_WEEK_VIEW_EVENT_R_PAD) - return E_WEEK_VIEW_POS_NONE; + return E_CAL_VIEW_POS_NONE; /* Support left/right edge for long events only. */ if (!e_week_view_is_one_day_event (week_view, wveitem->event_num)) { if (x < item->x1 + E_WEEK_VIEW_EVENT_L_PAD + E_WEEK_VIEW_EVENT_BORDER_WIDTH + E_WEEK_VIEW_EVENT_EDGE_X_PAD) - return E_WEEK_VIEW_POS_LEFT_EDGE; + return E_CAL_VIEW_POS_LEFT_EDGE; if (x >= item->x2 + 1 - E_WEEK_VIEW_EVENT_R_PAD - E_WEEK_VIEW_EVENT_BORDER_WIDTH - E_WEEK_VIEW_EVENT_EDGE_X_PAD) - return E_WEEK_VIEW_POS_RIGHT_EDGE; + return E_CAL_VIEW_POS_RIGHT_EDGE; } - return E_WEEK_VIEW_POS_EVENT; + return E_CAL_VIEW_POS_EVENT; } |