From 710bcfd46c28b15161217cba4593079b1831a2d0 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 2 Jan 2006 14:12:41 +0000 Subject: ** Fix for bug #325414 2006-01-02 Srinivasa Ragavan ** Fix for bug #325414 * gui/e-calendar-view.c: (e_calendar_view_get_tooltips): Added null check for the string before creating the tooltips and stopped showing it. * gui/e-day-view.c: (e_day_view_on_editing_stopped): * gui/e-week-view.c: (e_week_view_on_editing_stopped): Added code to hide tooltips window when start/stop hiding svn path=/trunk/; revision=31027 --- calendar/gui/e-calendar-view.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'calendar/gui/e-calendar-view.c') diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 02e0d57c84..0f854b619b 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1926,6 +1926,14 @@ e_calendar_view_get_tooltips (ECalendarViewEventData *data) box = gtk_vbox_new (FALSE, 0); str = icalcomponent_get_summary (pevent->comp_data->icalcomp); + + if (!(str && *str)) { + g_object_unref (newcomp); + gtk_widget_destroy (box); + + return FALSE; + } + tmp = g_strdup_printf ("%s", str); label = gtk_label_new (NULL); gtk_label_set_line_wrap ((GtkLabel *)label, TRUE); -- cgit