From 08378a0f5ca0cf475a55ef3dcaf7dd302ef537d8 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 4 May 2014 17:09:19 +0200 Subject: [PATCH] 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 7219380c..8985ab00 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 6c4a11c8..e54e3ac9 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