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+.
---
liblogdiag/ld-canvas.c | 2 +-
liblogdiag/ld-canvas.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'liblogdiag')
diff --git a/liblogdiag/ld-canvas.c b/liblogdiag/ld-canvas.c
index 0e1a508..3e7e8ed 100644
--- a/liblogdiag/ld-canvas.c
+++ b/liblogdiag/ld-canvas.c
@@ -560,7 +560,7 @@ update_adjustments (LdCanvas *self)
*
* Create an instance.
*/
-LdCanvas *
+GtkWidget *
ld_canvas_new (void)
{
return g_object_new (LD_TYPE_CANVAS, NULL);
diff --git a/liblogdiag/ld-canvas.h b/liblogdiag/ld-canvas.h
index 702f2fe..a5b952b 100644
--- a/liblogdiag/ld-canvas.h
+++ b/liblogdiag/ld-canvas.h
@@ -66,7 +66,7 @@ struct _LdCanvasClass
GType ld_canvas_get_type (void) G_GNUC_CONST;
-LdCanvas *ld_canvas_new (void);
+GtkWidget *ld_canvas_new (void);
void ld_canvas_set_diagram (LdCanvas *self, LdDiagram *diagram);
LdDiagram *ld_canvas_get_diagram (LdCanvas *self);
--
cgit v1.2.3-70-g09d2