aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/eventedit.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-12 08:17:12 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-12 08:17:12 +0800
commitfbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8 (patch)
treefcb69b57676e25f102083069ffc71651dc182e8e /calendar/gui/eventedit.c
parentb265b27dfc1e68424d509a17b9c6466adbae3fc9 (diff)
downloadgsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar.gz
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar.bz2
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar.lz
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar.xz
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.tar.zst
gsoc2013-evolution-fbc607b0edbdc39297d17c0ecc75b45e4bfbb0c8.zip
Begginning of the create-appointment-on-range-selection-and-enter code -miguel
svn path=/trunk/; revision=127
Diffstat (limited to 'calendar/gui/eventedit.c')
-rw-r--r--calendar/gui/eventedit.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c
index d87f838f0e..c0cfb1aa81 100644
--- a/calendar/gui/eventedit.c
+++ b/calendar/gui/eventedit.c
@@ -370,7 +370,7 @@ ee_store_dlg_values_to_ical (EventEditor *ee)
/* FIXME: This is not entirely correct; we should check if the values actually changed */
ical->last_mod = now;
- if (ee->new_ical)
+ if (ee->ical->new)
ical->created = now;
g_free (ical->summary);
@@ -382,7 +382,7 @@ ee_ok (GtkWidget *widget, EventEditor *ee)
{
ee_store_dlg_values_to_ical (ee);
- if (ee->new_ical)
+ if (ee->ical->new)
gnome_calendar_add_object (GNOME_CALENDAR (ee->gnome_cal), ee->ical);
gtk_widget_destroy (GTK_WIDGET (ee));
@@ -391,7 +391,7 @@ ee_ok (GtkWidget *widget, EventEditor *ee)
static void
ee_cancel (GtkWidget *widget, EventEditor *ee)
{
- if (ee->new_ical)
+ if (ee->ical->new)
ical_object_destroy (ee->ical);
gtk_widget_destroy (GTK_WIDGET (ee));
}
@@ -793,11 +793,9 @@ event_editor_new (GnomeCalendar *gcal, iCalObject *ical)
ee = EVENT_EDITOR (retval);
if (ical == 0){
- ee->new_ical = 1;
ical = ical_new ("Test Comment", user_name, "Test Summary");
- } else
- ee->new_ical = 0;
-
+ ical->new = 1;
+ }
ee->ical = ical;
ee->gnome_cal = gcal;
event_editor_init_widgets (ee);