diff options
Diffstat (limited to 'calendar/gui/gncal-full-day.c')
-rw-r--r-- | calendar/gui/gncal-full-day.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); |