aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-09-01 23:24:30 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-09-01 23:24:30 +0800
commitba9c7d021709966f75200f778b1ba5dc3ff7ab04 (patch)
tree34388164bb5f9ccbd8d46345e3e4ba7cf6dbfe91 /calendar/gui
parent943c181c658d64e2e89026db65613c905ffe9f25 (diff)
downloadgsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar.gz
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar.bz2
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar.lz
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar.xz
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.tar.zst
gsoc2013-evolution-ba9c7d021709966f75200f778b1ba5dc3ff7ab04.zip
We don't need AC_PROG_RANLIB and AM_PROG_LIBTOOL
2000-09-01 JP Rosevear <jpr@helixcode.com> * configure.in: We don't need AC_PROG_RANLIB and AM_PROG_LIBTOOL * src/libical/icalyacc.y (clear_recur): Explicitly set the week_start to the Monday default in case the recurrence rule does not. 2000-09-01 JP Rosevear <jpr@helixcode.com> * gui/event-editor.c: Make toolbar save and close button. We should put a similar menu option in sometime. 2000-08-31 JP Rosevear <jpr@helixcode.com> * cal-util/cal-recur.c (array_to_list): Use ICAL_RECURRENCE_ARRAY_MAX instead of MAX_SHORT svn path=/trunk/; revision=5164
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/event-editor.c36
1 files changed, 27 insertions, 9 deletions
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index b0202493f2..c3c41e5cd5 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -961,10 +961,9 @@ dialog_to_comp_object (EventEditor *ee)
cal_component_set_classification (comp, classification_get (priv->classification_radio));
/* Recurrence information */
- list = NULL;
icalrecurrencetype_clear (&recur);
recur.freq = recur_options_get (priv->recurrence_rule_none);
-
+
switch (recur.freq) {
case ICAL_NO_RECURRENCE:
/* nothing */
@@ -1027,16 +1026,24 @@ dialog_to_comp_object (EventEditor *ee)
}
if (recur.freq != ICAL_NO_RECURRENCE) {
+ /* recurrence start of week */
+ if (week_starts_on_monday)
+ recur.week_start = ICAL_MONDAY_WEEKDAY;
+ else
+ recur.week_start = ICAL_SUNDAY_WEEKDAY;
+
/* recurrence ending date */
if (e_dialog_toggle_get (priv->recurrence_ending_date_end_on)) {
- /* Also here, to ensure that the event is used, we add 86400
- * secs to get get next day, in accordance to the RFC
+ /* Also here, to ensure that the event is used, we add a day
+ * to get the next day, in accordance to the RFC
*/
- t = e_dialog_dateedit_get (priv->recurrence_ending_date_end_on_date) + 86400;
- recur.until = icaltime_from_timet (t, TRUE, TRUE);
+ t = e_dialog_dateedit_get (priv->recurrence_ending_date_end_on_date);
+ t = time_add_day (t, 1);
+ recur.until = icaltime_from_timet (t, TRUE, FALSE);
} else if (e_dialog_toggle_get (priv->recurrence_ending_date_end_after)) {
recur.count = e_dialog_spin_get_int (priv->recurrence_ending_date_end_after_count);
}
+ list = NULL;
list = g_slist_append (list, &recur);
cal_component_set_rrule_list (comp, list);
}
@@ -1107,6 +1114,17 @@ file_save_cb (GtkWidget *widget, gpointer data)
save_event_object (ee);
}
+/* File/Save and Close callback */
+static void
+file_save_and_close_cb (GtkWidget *widget, gpointer data)
+{
+ EventEditor *ee;
+
+ ee = EVENT_EDITOR (data);
+ save_event_object (ee);
+ close_dialog (ee);
+}
+
/* File/Delete callback */
static void
file_delete_cb (GtkWidget *widget, gpointer data)
@@ -1341,9 +1359,9 @@ create_menu (EventEditor *ee)
/* Toolbar */
static GnomeUIInfo toolbar[] = {
- GNOMEUIINFO_ITEM_STOCK (N_("Save"),
- N_("Save this appointment"),
- file_save_cb,
+ GNOMEUIINFO_ITEM_STOCK (N_("Save and Close"),
+ N_("Save and close this appointment"),
+ file_save_and_close_cb,
GNOME_STOCK_PIXMAP_SAVE),
GNOMEUIINFO_ITEM_STOCK (N_("Delete"),