aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-23 05:35:40 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-23 05:35:40 +0800
commitc06781b52c30d59f6b5e6b4225df2f1aa43d177e (patch)
tree6aa5241b92c82bb66e3348dd2ac6beeb271081be
parent806e63b32a7fdca4899d89ba236a0eb64726707c (diff)
downloadgsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar.gz
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar.bz2
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar.lz
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar.xz
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.tar.zst
gsoc2013-evolution-c06781b52c30d59f6b5e6b4225df2f1aa43d177e.zip
removed missing calls to e_day/week_view_*_clipboard.
2003-07-22 Rodrigo Moya <rodrigo@ximian.com> * gui/gnome-cal.c (gnome_calendar_copy_clipboard, gnome_calendar_cut_clipboard, gnome_calendar_paste_clipboard): removed missing calls to e_day/week_view_*_clipboard. svn path=/trunk/; revision=21894
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/gnome-cal.c49
2 files changed, 9 insertions, 46 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 3f3b46b0a5..585c32aad9 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,11 @@
2003-07-22 Rodrigo Moya <rodrigo@ximian.com>
+ * gui/gnome-cal.c (gnome_calendar_copy_clipboard,
+ gnome_calendar_cut_clipboard, gnome_calendar_paste_clipboard):
+ removed missing calls to e_day/week_view_*_clipboard.
+
+2003-07-22 Rodrigo Moya <rodrigo@ximian.com>
+
* gui/e-cal-view.[ch]: added "get_selected_events",
and "update_query" virtual methods.
(e_cal_view_class_init): initialize new virtual methods.
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index a144b77ef5..f405a16142 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -2820,22 +2820,7 @@ gnome_calendar_cut_clipboard (GnomeCalendar *gcal)
location = get_focus_location (gcal);
if (location == FOCUS_CALENDAR) {
- switch (priv->current_view_type) {
- case GNOME_CAL_DAY_VIEW :
- e_day_view_cut_clipboard (E_DAY_VIEW (priv->day_view));
- break;
- case GNOME_CAL_WORK_WEEK_VIEW :
- e_day_view_cut_clipboard (E_DAY_VIEW (priv->work_week_view));
- break;
- case GNOME_CAL_WEEK_VIEW :
- e_week_view_cut_clipboard (E_WEEK_VIEW (priv->week_view));
- break;
- case GNOME_CAL_MONTH_VIEW :
- e_week_view_cut_clipboard (E_WEEK_VIEW (priv->month_view));
- break;
- default:
- g_assert_not_reached ();
- }
+ e_cal_view_cut_clipboard (E_CAL_VIEW (gnome_calendar_get_current_view_widget (gcal)));
} else if (location == FOCUS_TASKPAD)
e_calendar_table_cut_clipboard (E_CALENDAR_TABLE (priv->todo));
else
@@ -2853,22 +2838,7 @@ gnome_calendar_copy_clipboard (GnomeCalendar *gcal)
location = get_focus_location (gcal);
if (location == FOCUS_CALENDAR) {
- switch (priv->current_view_type) {
- case GNOME_CAL_DAY_VIEW :
- e_day_view_copy_clipboard (E_DAY_VIEW (priv->day_view));
- break;
- case GNOME_CAL_WORK_WEEK_VIEW :
- e_day_view_copy_clipboard (E_DAY_VIEW (priv->work_week_view));
- break;
- case GNOME_CAL_WEEK_VIEW :
- e_week_view_copy_clipboard (E_WEEK_VIEW (priv->week_view));
- break;
- case GNOME_CAL_MONTH_VIEW :
- e_week_view_copy_clipboard (E_WEEK_VIEW (priv->month_view));
- break;
- default:
- g_assert_not_reached ();
- }
+ e_cal_view_copy_clipboard (E_CAL_VIEW (gnome_calendar_get_current_view_widget (gcal)));
} else if (location == FOCUS_TASKPAD)
e_calendar_table_copy_clipboard (E_CALENDAR_TABLE (priv->todo));
else
@@ -2886,20 +2856,7 @@ gnome_calendar_paste_clipboard (GnomeCalendar *gcal)
location = get_focus_location (gcal);
if (location == FOCUS_CALENDAR) {
- switch (priv->current_view_type) {
- case GNOME_CAL_DAY_VIEW :
- e_day_view_paste_clipboard (E_DAY_VIEW (priv->day_view));
- break;
- case GNOME_CAL_WORK_WEEK_VIEW :
- e_day_view_paste_clipboard (E_DAY_VIEW (priv->work_week_view));
- break;
- case GNOME_CAL_WEEK_VIEW :
- e_week_view_paste_clipboard (E_WEEK_VIEW (priv->week_view));
- break;
- case GNOME_CAL_MONTH_VIEW :
- e_week_view_paste_clipboard (E_WEEK_VIEW (priv->month_view));
- break;
- }
+ e_cal_view_paste_clipboard (E_CAL_VIEW (gnome_calendar_get_current_view_widget (gcal)));
} else if (location == FOCUS_TASKPAD)
e_calendar_table_paste_clipboard (E_CALENDAR_TABLE (priv->todo));
else