diff options
Diffstat (limited to 'shell/ev-sidebar-links.c')
-rw-r--r-- | shell/ev-sidebar-links.c | 9 |
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); |