aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-21 12:05:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-21 20:18:39 +0800
commita4cb2af92266116c86703b59ce5d92baf259d610 (patch)
treef57da6f8453ee6682357f3372b2b21aa2be76d41 /widgets
parentc99b9f5849ea09b7aae6a1e10f07bb3c2f2e287f (diff)
downloadgsoc2013-evolution-a4cb2af92266116c86703b59ce5d92baf259d610.tar.gz
gsoc2013-evolution-a4cb2af92266116c86703b59ce5d92baf259d610.tar.zst
gsoc2013-evolution-a4cb2af92266116c86703b59ce5d92baf259d610.zip
Fix compiler warnings.
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);