diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2001-06-28 19:57:29 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2001-06-28 19:57:29 +0800 |
commit | 8808041831b8b9b5a12243f938ac65b6496392a6 (patch) | |
tree | 84676c5246271bcf16eb97eceb61441028cd5d60 /calendar/gui/calendar-commands.c | |
parent | d77b63aa3c2d2ecdf60ec3fbe86df2d6f5b9b667 (diff) | |
download | gsoc2013-evolution-8808041831b8b9b5a12243f938ac65b6496392a6.tar.gz gsoc2013-evolution-8808041831b8b9b5a12243f938ac65b6496392a6.tar.zst gsoc2013-evolution-8808041831b8b9b5a12243f938ac65b6496392a6.zip |
removed not-uses-anymore parameter in call to
2001-06-28 Rodrigo Moya <rodrigo@ximian.com>
* gui/component-factory.c: removed not-uses-anymore parameter in
call to evolution_shell_component_new
* gui/gnome-cal.[ch] (gnome_calendar_cut_clipboard),
(gnome_calendar_copy_clipboard), (gnome_calendar_paste_clipboard):
new functions for allowing execution of clipboard-related commands
* gui/e-day-view.[ch] (e_day_view_cut_clipboard),
(e_day_view_copy_clipboard), (e_day_view_paste_clipboard): ditto
* gui/e-week-view.[ch] (e_week_view_cut_clipboard),
(e_week_view_copy_clipboard), (e_week_view_paste_clipboard): ditto
2001-06-27 Rodrigo Moya <rodrigo@ximian.com>
* gui/calendar-commands.c (cut_event_cmd),
(copy_event_cmd), (paste_event_cmd): added callbacks for the new
clipboard-related menu entries
svn path=/trunk/; revision=10557
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 3167e002f6..a16b280a13 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -365,6 +365,41 @@ properties_cmd (BonoboUIComponent *uic, gpointer data, const char *path) cal_prefs_dialog_show (preferences_dialog); } +static void +cut_event_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) +{ + GnomeCalendar *gcal; + + gcal = GNOME_CALENDAR (data); + set_clock_cursor (gcal); + gnome_calendar_cut_clipboard (gcal); + set_normal_cursor (gcal); +} + +static void +copy_event_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) +{ + GnomeCalendar *gcal; + + gcal = GNOME_CALENDAR (data); + + set_clock_cursor (gcal); + gnome_calendar_copy_clipboard (gcal); + set_normal_cursor (gcal); +} + +static void +paste_event_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) +{ + GnomeCalendar *gcal; + + gcal = GNOME_CALENDAR (data); + + set_clock_cursor (gcal); + gnome_calendar_paste_clipboard (gcal); + set_normal_cursor (gcal); +} + static BonoboUIVerb verbs [] = { BONOBO_UI_VERB ("CalendarNew", new_calendar_cmd), @@ -376,6 +411,10 @@ static BonoboUIVerb verbs [] = { BONOBO_UI_VERB ("EditNewEvent", new_event_cb), BONOBO_UI_VERB ("CalendarPreferences", properties_cmd), + BONOBO_UI_VERB ("CutEvent", cut_event_cmd), + BONOBO_UI_VERB ("CopyEvent", copy_event_cmd), + BONOBO_UI_VERB ("PasteEvent", paste_event_cmd), + BONOBO_UI_VERB ("CalendarPrev", previous_clicked), BONOBO_UI_VERB ("CalendarToday", today_clicked), BONOBO_UI_VERB ("CalendarNext", next_clicked), |