aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-full-day.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>1998-04-29 10:38:48 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-29 10:38:48 +0800
commit282114a676e69a0b4c0656b3a6266d27165b2039 (patch)
treed34c5be00109f8f6af69412bbe67a6265f112098 /calendar/gncal-full-day.c
parent55ae95fe78692dfa59a17520b40b6ac89fcad706 (diff)
downloadgsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.tar.gz
gsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.tar.zst
gsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.zip
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
Diffstat (limited to 'calendar/gncal-full-day.c')
-rw-r--r--calendar/gncal-full-day.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/gncal-full-day.c b/calendar/gncal-full-day.c
index 4501c95c02..335cc2f17a 100644
--- a/calendar/gncal-full-day.c
+++ b/calendar/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);