summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-links.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-09 12:29:16 +0200
committerlukefromdc <[email protected]>2019-08-16 20:40:31 +0000
commitd8c5ec0785df76b003a167d24158f64eb81de91d (patch)
tree91f4539b8d8a45b4a4e6ea0b6e1da8211994190a /shell/ev-sidebar-links.c
parent1c9506d7584c1136777842444541ede602a84259 (diff)
downloadatril-d8c5ec0785df76b003a167d24158f64eb81de91d.tar.bz2
atril-d8c5ec0785df76b003a167d24158f64eb81de91d.tar.xz
ev-sidebar-links: avoid 'g_type_class_add_private'
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r--shell/ev-sidebar-links.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 90a23269..92caa959 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -84,13 +84,10 @@ G_DEFINE_TYPE_EXTENDED (EvSidebarLinks,
ev_sidebar_links,
GTK_TYPE_BOX,
0,
+ G_ADD_PRIVATE (EvSidebarLinks)
G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
ev_sidebar_links_page_iface_init))
-
-#define EV_SIDEBAR_LINKS_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_SIDEBAR_LINKS, EvSidebarLinksPrivate))
-
static void
ev_sidebar_links_set_property (GObject *object,
guint prop_id,
@@ -209,8 +206,6 @@ ev_sidebar_links_class_init (EvSidebarLinksClass *ev_sidebar_links_class)
g_object_class_override_property (g_object_class,
PROP_WIDGET,
"main-widget");
-
- g_type_class_add_private (g_object_class, sizeof (EvSidebarLinksPrivate));
}
static void
@@ -447,7 +442,7 @@ ev_sidebar_links_construct (EvSidebarLinks *ev_sidebar_links)
static void
ev_sidebar_links_init (EvSidebarLinks *ev_sidebar_links)
{
- ev_sidebar_links->priv = EV_SIDEBAR_LINKS_GET_PRIVATE (ev_sidebar_links);
+ ev_sidebar_links->priv = ev_sidebar_links_get_instance_private (ev_sidebar_links);
gtk_orientable_set_orientation (GTK_ORIENTABLE (ev_sidebar_links), GTK_ORIENTATION_VERTICAL);