summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-thumbnails.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-09 12:27:08 +0200
committerlukefromdc <[email protected]>2019-08-16 20:40:31 +0000
commit1c9506d7584c1136777842444541ede602a84259 (patch)
tree951d766050092152936f13893860f7db1c5519f8 /shell/ev-sidebar-thumbnails.c
parent84d412ed282fdf051ac37835f4257fe02c65244c (diff)
downloadatril-1c9506d7584c1136777842444541ede602a84259.tar.bz2
atril-1c9506d7584c1136777842444541ede602a84259.tar.xz
ev-sidebar-thumbnails: avoid 'g_type_class_add_private'
Diffstat (limited to 'shell/ev-sidebar-thumbnails.c')
-rw-r--r--shell/ev-sidebar-thumbnails.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 905b95aa..72c365ec 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -103,12 +103,10 @@ G_DEFINE_TYPE_EXTENDED (EvSidebarThumbnails,
ev_sidebar_thumbnails,
GTK_TYPE_BOX,
0,
+ G_ADD_PRIVATE (EvSidebarThumbnails)
G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
ev_sidebar_thumbnails_page_iface_init))
-#define EV_SIDEBAR_THUMBNAILS_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EV_TYPE_SIDEBAR_THUMBNAILS, EvSidebarThumbnailsPrivate));
-
/* Thumbnails dimensions cache */
#define EV_THUMBNAILS_SIZE_CACHE_KEY "ev-thumbnails-size-cache"
@@ -333,8 +331,6 @@ ev_sidebar_thumbnails_class_init (EvSidebarThumbnailsClass *ev_sidebar_thumbnail
g_object_class_override_property (g_object_class,
PROP_WIDGET,
"main-widget");
-
- g_type_class_add_private (g_object_class, sizeof (EvSidebarThumbnailsPrivate));
}
GtkWidget *
@@ -761,7 +757,7 @@ ev_sidebar_thumbnails_init (EvSidebarThumbnails *ev_sidebar_thumbnails)
EvSidebarThumbnailsPrivate *priv;
guint signal_id;
- priv = ev_sidebar_thumbnails->priv = EV_SIDEBAR_THUMBNAILS_GET_PRIVATE (ev_sidebar_thumbnails);
+ priv = ev_sidebar_thumbnails->priv = ev_sidebar_thumbnails_get_instance_private (ev_sidebar_thumbnails);
priv->list_store = gtk_list_store_new (NUM_COLUMNS,
G_TYPE_STRING,