summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-09 12:40:09 +0200
committerlukefromdc <[email protected]>2019-08-16 20:40:31 +0000
commit12feefb0edcb453724112fb626dee626b7f75079 (patch)
treef6e4f830bd3e05ebb1da4de8b90c31739f06d34b
parent6d5f3605d6a1d96f054f229d896fa6df863a8022 (diff)
downloadatril-12feefb0edcb453724112fb626dee626b7f75079.tar.bz2
atril-12feefb0edcb453724112fb626dee626b7f75079.tar.xz
ev-sidebar-bookmarks: avoid 'g_type_class_add_private'
-rw-r--r--shell/ev-sidebar-bookmarks.c7
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] =