From 282114a676e69a0b4c0656b3a6266d27165b2039 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Wed, 29 Apr 1998 02:38:48 +0000 Subject: Lots of fixes: Lots of fixes: 1. Alarms are rescheduled when an event has been changed. 2. Avoid emitting spurious event changes. 3. Applied black magic to get the mail-notification working. Miguel. svn path=/trunk/; revision=199 --- calendar/gui/gncal-full-day.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'calendar/gui/gncal-full-day.c') diff --git a/calendar/gui/gncal-full-day.c b/calendar/gui/gncal-full-day.c index 4501c95c02..335cc2f17a 100644 --- a/calendar/gui/gncal-full-day.c +++ b/calendar/gui/gncal-full-day.c @@ -457,15 +457,20 @@ child_focus_out (GtkWidget *widget, GdkEventFocus *event, gpointer data) { Child *child; GncalFullDay *fullday; - + char *text; + child = data; /* Update summary in calendar object */ + text = gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1); + if (child->ico->summary && strcmp (text, child->ico->summary) == 0) + return; + if (child->ico->summary) g_free (child->ico->summary); - child->ico->summary = gtk_editable_get_chars (GTK_EDITABLE (widget), 0, -1); + child->ico->summary = text; child_set_size (child); -- cgit v1.2.3