aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-online-button.c2
-rw-r--r--widgets/table/e-tree.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/widgets/misc/e-online-button.c b/widgets/misc/e-online-button.c
index 6fcd446958..1157ecdb86 100644
--- a/widgets/misc/e-online-button.c
+++ b/widgets/misc/e-online-button.c
@@ -141,7 +141,7 @@ online_button_init (EOnlineButton *button)
button->priv = E_ONLINE_BUTTON_GET_PRIVATE (button);
- gtk_widget_set_can_focus (button, FALSE);
+ gtk_widget_set_can_focus (GTK_WIDGET (button), FALSE);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
widget = gtk_image_new ();
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);