From b782dae4b2d4a05eef882c4e157c2ebf1497d61c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Mon, 24 Jan 2011 17:22:37 +0100
Subject: Make ld_canvas_new() return a GtkWidget reference.
For consistency with GTK+.
---
src/ld-window-main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src')
diff --git a/src/ld-window-main.c b/src/ld-window-main.c
index df0e5fb..d59d2fd 100644
--- a/src/ld-window-main.c
+++ b/src/ld-window-main.c
@@ -227,7 +227,7 @@ ld_window_main_init (LdWindowMain *self)
gtk_toolbar_set_orientation (GTK_TOOLBAR (priv->library_toolbar),
GTK_ORIENTATION_VERTICAL);
- priv->canvas = ld_canvas_new ();
+ priv->canvas = LD_CANVAS (ld_canvas_new ());
priv->canvas_window = gtk_scrolled_window_new (NULL, NULL);
gtk_container_add (GTK_CONTAINER (priv->canvas_window),
GTK_WIDGET (priv->canvas));
--
cgit v1.2.3-70-g09d2