[evolution/gnome-2-30] fix disappearing e-table headers by realising the (horrible) pet widget we are going to steal the gc



commit 394eeb4c34a944f1f046efb6e596531630240a56
Author: Michael Meeks <michael meeks novell com>
Date:   Wed Apr 21 14:41:50 2010 +0100

    fix disappearing e-table headers by realising the (horrible)
    pet widget we are going to steal the gc from, so it actually has it.

 widgets/table/e-table-header-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c
index f2a3c1a..78ff576 100644
--- a/widgets/table/e-table-header-utils.c
+++ b/widgets/table/e-table-header-utils.c
@@ -352,6 +352,7 @@ e_table_header_draw_button (GdkDrawable *drawable, ETableCol *ecol,
 		g_label = GTK_BIN(button)->child;
 		g_object_add_weak_pointer (G_OBJECT (g_label), &g_label);
 		gtk_widget_ensure_style (g_label);
+		gtk_widget_realize (g_label);
 	}
 
 	gc = GTK_WIDGET (g_label)->style->fg_gc[state];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]