diff options
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-tree.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index f14c72b4dd..f813b64e8f 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -707,11 +707,13 @@ header_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc, ETree *e_t static void e_tree_setup_header (ETree *e_tree) { + GtkWidget *widget; gchar *pointer; - e_tree->priv->header_canvas = GNOME_CANVAS (e_canvas_new ()); - gtk_widget_set_can_focus (e_tree->priv->header_canvas, FALSE); - gtk_widget_show (GTK_WIDGET (e_tree->priv->header_canvas)); + widget = e_canvas_new (); + gtk_widget_set_can_focus (widget, FALSE); + e_tree->priv->header_canvas = GNOME_CANVAS (widget); + gtk_widget_show (widget); pointer = g_strdup_printf("%p", (gpointer) e_tree); |