aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-23 23:52:08 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-23 23:52:08 +0800
commitb167ce08618496b4017274f5b5d5d0bfbebe7d85 (patch)
tree32bb05c22bd5d3f6a8c0827199387e9310b64e57 /calendar/gui/gnome-cal.c
parent6742a6ed125e292940d616441eec51e4c227a6c9 (diff)
downloadgsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar.gz
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar.bz2
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar.lz
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar.xz
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.tar.zst
gsoc2013-evolution-b167ce08618496b4017274f5b5d5d0bfbebe7d85.zip
moved the duplicated popup menu code here. (e_cal_view_create_popup_menu):
2003-07-23 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-view.[ch]: moved the duplicated popup menu code here. (e_cal_view_create_popup_menu): new function to create the popup menu for all views. (on_new_appointment, on_new_event, on_new_meeting, on_new_task, on_goto_today, on_goto_date, on_edit_appointment, on_print, on_save_as, on_print_event, on_meeting, on_forward, on_publish, on_settings, on_delete_appointment, on_cut, on_copy, on_paste, on_unrecur_appointment): callbacks for the popup menu items. * gui/e-week-view.c (e_week_view_on_new_appointment, e_week_view_new_appointment, e_week_view_on_new_event, e_week_view_on_new_meeting, e_week_view_on_new_task, e_week_view_on_goto_today, e_week_view_on_goto_date, e_week_view_on_edit_appointment, e_week_view_on_print, e_week_view_on_save_as, e_week_view_on_print_event, e_week_view_on_meeting, e_week_view_on_forward, e_week_view_on_publish, e_week_view_on_settings, e_week_view_on_delete_appointment, e_week_view_delete_event_internal, e_week_view_on_cut, e_week_view_on_copy, e_week_view_on_paste): * gui/e-day-view.c (e_day_view_on_new_appointment, e_day_view_on_new_event, e_day_view_on_new_meeting, e_day_view_on_new_task, e_day_view_on_goto_today, e_day_view_on_goto_date, e_day_view_on_edit_appointment, e_day_view_on_print, e_day_view_on_save_as, e_day_view_on_print_event, e_day_view_on_meeting, e_day_view_on_forward, e_day_view_on_publish, e_day_view_on_settings, e_day_view_on_delete_appointment, e_day_view_delete_event_internal, e_day_view_on_cut, e_day_view_on_copy, e_day_view_on_paste): removed duplicated code. * gui/gnome-cal.[ch] (gnome_calendar_unrecur_selection): new function. svn path=/trunk/; revision=21908
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 61b4980586..c16651f9cb 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -2953,6 +2953,30 @@ gnome_calendar_delete_selected_occurrence (GnomeCalendar *gcal)
}
}
+void
+gnome_calendar_unrecur_selection (GnomeCalendar *gcal)
+{
+ GnomeCalendarPrivate *priv;
+ FocusLocation location;
+ GtkWidget *view;
+
+ g_return_if_fail (GNOME_IS_CALENDAR (gcal));
+
+ priv = gcal->priv;
+
+ location = get_focus_location (gcal);
+
+ if (location == FOCUS_CALENDAR) {
+
+ view = gnome_calendar_get_current_view_widget (gcal);
+
+ if (E_IS_DAY_VIEW (view))
+ e_day_view_unrecur_appointment (E_DAY_VIEW (view));
+ else
+ e_week_view_unrecur_appointment (E_WEEK_VIEW (view));
+ }
+}
+
typedef struct {
gboolean remove;
GnomeCalendar *gcal;