diff options
Diffstat (limited to 'shell/ev-sidebar-bookmarks.c')
-rw-r--r-- | shell/ev-sidebar-bookmarks.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/shell/ev-sidebar-bookmarks.c b/shell/ev-sidebar-bookmarks.c index 1d15a8cb..2abdd695 100644 --- a/shell/ev-sidebar-bookmarks.c +++ b/shell/ev-sidebar-bookmarks.c @@ -66,6 +66,7 @@ G_DEFINE_TYPE_EXTENDED (EvSidebarBookmarks, ev_sidebar_bookmarks, GTK_TYPE_BOX, 0, + G_ADD_PRIVATE (EvSidebarBookmarks) G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE, ev_sidebar_bookmarks_page_iface_init)) @@ -418,9 +419,7 @@ ev_sidebar_bookmarks_init (EvSidebarBookmarks *sidebar_bookmarks) GtkCellRenderer *renderer; GtkTreeSelection *selection; - sidebar_bookmarks->priv = G_TYPE_INSTANCE_GET_PRIVATE (sidebar_bookmarks, - EV_TYPE_SIDEBAR_BOOKMARKS, - EvSidebarBookmarksPrivate); + sidebar_bookmarks->priv = ev_sidebar_bookmarks_get_instance_private (sidebar_bookmarks); priv = sidebar_bookmarks->priv; gtk_orientable_set_orientation (GTK_ORIENTABLE (sidebar_bookmarks), GTK_ORIENTATION_VERTICAL); @@ -537,8 +536,6 @@ ev_sidebar_bookmarks_class_init (EvSidebarBookmarksClass *klass) widget_class->popup_menu = ev_sidebar_bookmarks_popup_menu; - g_type_class_add_private (g_object_class, sizeof (EvSidebarBookmarksPrivate)); - g_object_class_override_property (g_object_class, PROP_WIDGET, "main-widget"); signals[ADD_BOOKMARK] = |