Skip to content

Commit

Permalink
recent-view: ev_recent_view_new should return a GtkWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Garcia Campos committed May 4, 2014
1 parent 39ad5db commit 08378a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shell/ev-recent-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
4 changes: 2 additions & 2 deletions shell/ev-recent-view.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 08378a0

Please sign in to comment.