From 0161858613166f8b5e43816d9b674426f218c0b4 Mon Sep 17 00:00:00 2001 From: Ed Catmur Date: Mon, 12 Jun 2006 09:45:31 +0000 Subject: ** Fixes bug #343764 now entirely Adding a weak reference to avoid 2006-06-12 Ed Catmur ** Fixes bug #343764 now entirely * e-table-header-utils.c: (e_table_header_draw_button): Adding a weak reference to avoid crashing. svn path=/trunk/; revision=32109 --- widgets/table/ChangeLog | 6 ++++++ widgets/table/e-table-header-utils.c | 1 + 2 files changed, 7 insertions(+) diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 35f0a8e4ae..cd063764c3 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,9 @@ +2006-06-12 Ed Catmur + + ** Fixes bug #343764 now entirely + * e-table-header-utils.c: (e_table_header_draw_button): + Adding a weak reference to avoid crashing. + 2006-06-12 Srinivasa Ragavan Committing a fix for sorting in the vertical view. diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index 8d452467c6..9eaba9d843 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -350,6 +350,7 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol, gtk_widget_ensure_style (window); gtk_widget_ensure_style (button); g_label = GTK_BIN(button)->child; + g_object_add_weak_pointer (G_OBJECT (g_label), &g_label); gtk_widget_ensure_style (g_label); } -- cgit