[evince] recent-view: ev_recent_view_new should return a GtkWidget



commit 08378a0f5ca0cf475a55ef3dcaf7dd302ef537d8
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun May 4 17:09:19 2014 +0200

    recent-view: ev_recent_view_new should return a GtkWidget

 shell/ev-recent-view.c |    4 ++--
 shell/ev-recent-view.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/shell/ev-recent-view.c b/shell/ev-recent-view.c
index 7219380..8985ab0 100644
--- a/shell/ev-recent-view.c
+++ b/shell/ev-recent-view.c
@@ -463,8 +463,8 @@ ev_recent_view_class_init (EvRecentViewClass *klass)
         g_type_class_add_private (klass, sizeof (EvRecentViewPrivate));
 }
 
-EvRecentView *
+GtkWidget *
 ev_recent_view_new (void)
 {
-        return EV_RECENT_VIEW (g_object_new (EV_TYPE_RECENT_VIEW, NULL));
+        return GTK_WIDGET (g_object_new (EV_TYPE_RECENT_VIEW, NULL));
 }
diff --git a/shell/ev-recent-view.h b/shell/ev-recent-view.h
index 6c4a11c..e54e3ac 100644
--- a/shell/ev-recent-view.h
+++ b/shell/ev-recent-view.h
@@ -48,8 +48,8 @@ struct _EvRecentViewClass
         GtkScrolledWindowClass parent_class;
 };
 
-GType         ev_recent_view_get_type          (void) G_GNUC_CONST;
-EvRecentView *ev_recent_view_new               (void);
+GType      ev_recent_view_get_type (void) G_GNUC_CONST;
+GtkWidget *ev_recent_view_new      (void);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]