From 1ae6dea2dbe31f7aef33db4f6c099b4476a545e9 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 28 Jan 1999 06:01:34 +0000 Subject: Insert the summary text here. (child_focus_in): No need to raise the 1999-01-28 Federico Mena Quintero * gncal-full-day.c (child_new): Insert the summary text here. (child_focus_in): No need to raise the window, since we have Spiffo(tm) layout code. Boy, this is old code. (gncal_full_day_focus_child): Now that GtkText works better, we can avoid synthesizing a click which was causing grief, anyway. (child_button_press): Grab the focus before popping up the menu. * layout.c (find_index): Added a sanity check. * gncal-full-day.c (child_destroy): Unmap and unrealize the child before unparenting/destroying it. (child_unrealize): Unrealize the widget. What was I thinking? (child_new): Save the focus_out_event signal connection id in Child structure (in a new field). (child_destroy): Disconnect from the focus_out_event signal, since we don't want to get such an event when the widget is destroyed. (gncal_full_day_destroy): Destroy the children properly; it was leaking memory. svn path=/trunk/; revision=633 --- calendar/layout.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/layout.c') diff --git a/calendar/layout.c b/calendar/layout.c index f97f0d5ffd..1367ae3f8f 100644 --- a/calendar/layout.c +++ b/calendar/layout.c @@ -101,6 +101,8 @@ find_index (struct layout_info *li, time_t t) for (i = 0; ; i++) if (li->partition[i] == t) return i; + + g_assert_not_reached (); } #define xy(li, x, y) li->array[(y * MAX_EVENTS_PER_ROW) + (x)] -- cgit