aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-05-01 23:55:27 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-05-01 23:55:27 +0800
commit1e8e80293c2ede36f219f03197b6b7f959df93a4 (patch)
tree097b2abdf75f4e9c99d26216321518d050ab2dd1 /calendar/gui/calendar-commands.c
parent42f7062a9b815b50a7a3b6b40247a3acec098fc2 (diff)
downloadgsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar.gz
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar.bz2
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar.lz
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar.xz
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.tar.zst
gsoc2013-evolution-1e8e80293c2ede36f219f03197b6b7f959df93a4.zip
new function to get the currently seleted time range form the current
2000-05-01 Damon Chaplin <damon@helixcode.com> * gui/gnome-cal.[hc] (gnome_calendar_get_current_time_range): new function to get the currently seleted time range form the current view. * gui/calendar-commands.c (display_objedit): use the above function to get the time for the new appointment. * gui/e-week-view.c: * gui/e-day-view.c: use a shallow copy of the ico when we update the times (when resizing/dragging). Otherwise we won't detect that the time has changed in the "update_event" callback. Also added functions to get the currently selected time range. svn path=/trunk/; revision=2712
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index e3ae6a4bc6..d1f88066a9 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -189,12 +189,11 @@ display_objedit (BonoboUIHandler *uih, void *user_data, const char *path)
iCalObject *ico;
GnomeCalendar *gcal = GNOME_CALENDAR (user_data);
- /* FIXME: Should get the selection time from the view, since they
- may not be using the gcal's times. */
ico = ical_new ("", user_name, "");
ico->new = 1;
- ico->dtstart = gcal->selection_start_time;
- ico->dtend = gcal->selection_end_time;
+
+ gnome_calendar_get_current_time_range (gcal, &ico->dtstart,
+ &ico->dtend);
ee = event_editor_new (gcal, ico);
gtk_widget_show (ee);