diff options
author | Miguel de Icaza <miguel@ximian.com> | 2001-03-17 14:43:15 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2001-03-17 14:43:15 +0800 |
commit | bdb087eaeba3937fd9ce86176a9e0a5d09d899f5 (patch) | |
tree | dfef6f4bc53bb2e5f0cd0cfb4aa67dea60d7ad39 /calendar/gui/calendar-commands.c | |
parent | fcb4ed5a4f851aabae47aa5c376253246c3f216c (diff) | |
download | gsoc2013-evolution-bdb087eaeba3937fd9ce86176a9e0a5d09d899f5.tar.gz gsoc2013-evolution-bdb087eaeba3937fd9ce86176a9e0a5d09d899f5.tar.zst gsoc2013-evolution-bdb087eaeba3937fd9ce86176a9e0a5d09d899f5.zip |
Moved functionality here from e_day_view_on_new_appointment. Allows
2001-03-17 Miguel de Icaza <miguel@ximian.com>
* gui/e-week-view.c (e_week_view_new_event): Moved functionality
here from e_day_view_on_new_appointment. Allows setting for "full
day" event.
(e_week_view_on_new_full_day): New function for making a full day
event.
(e_week_view_on_goto_date): Go To support.
(e_week_view_on_goto_today): Goto today support.
* gui/e-day-view.c (e_day_view_new_event): Moved functionality
here from e_day_view_on_new_appointment. Allows setting for "full
day" event.
(e_day_view_on_new_full_day): New function for making a full day
event.
(e_day_view_on_goto_date): Go To support.
(e_day_view_on_goto_today): Goto today support.
* main_items: Add New All Day Event; Go to Today; Go to Date.
svn path=/trunk/; revision=8778
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r-- | calendar/gui/calendar-commands.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index 4b6078df99..dfffed9b63 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -154,6 +154,14 @@ next_clicked (BonoboUIComponent *uic, gpointer data, const char *path) set_normal_cursor (gcal); } +void +calendar_goto_today (GnomeCalendar *gcal) +{ + set_clock_cursor (gcal); + gnome_calendar_goto_today (gcal); + set_normal_cursor (gcal); +} + static void today_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { @@ -161,9 +169,7 @@ today_clicked (BonoboUIComponent *uic, gpointer data, const char *path) gcal = GNOME_CALENDAR (data); - set_clock_cursor (gcal); - gnome_calendar_goto_today (gcal); - set_normal_cursor (gcal); + calendar_goto_today (gcal); } static void |