summaryrefslogtreecommitdiff
path: root/src/eom-list-store.c
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2013-10-04 14:21:20 +0200
committerraveit65 <[email protected]>2018-07-17 21:53:38 +0200
commit94f7f4412338fb4c05f2010f135cfab9985712fa (patch)
treeb97c1465c1fca30631d5d159c0f12ca759855813 /src/eom-list-store.c
parentfb7c5396f68f03f634a57654267a67191031e75d (diff)
downloadeom-94f7f4412338fb4c05f2010f135cfab9985712fa.tar.bz2
eom-94f7f4412338fb4c05f2010f135cfab9985712fa.tar.xz
Convert to G_DEFINE_TYPE_WITH_PRIVATE part 3
origin commits: https://gitlab.gnome.org/GNOME/eog/commit/d7317d2 https://gitlab.gnome.org/GNOME/eog/commit/756dc07 https://gitlab.gnome.org/GNOME/eog/commit/c485fb8 https://gitlab.gnome.org/GNOME/eog/commit/77be951 https://gitlab.gnome.org/GNOME/eog/commit/007273d https://gitlab.gnome.org/GNOME/eog/commit/a545274 https://gitlab.gnome.org/GNOME/eog/commit/e0f99fb https://gitlab.gnome.org/GNOME/eog/commit/1222978
Diffstat (limited to 'src/eom-list-store.c')
-rw-r--r--src/eom-list-store.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/eom-list-store.c b/src/eom-list-store.c
index 51df69d..4153bbc 100644
--- a/src/eom-list-store.c
+++ b/src/eom-list-store.c
@@ -32,8 +32,6 @@
#define EOM_LIST_STORE_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_LIST_STORE, EomListStorePrivate))
-G_DEFINE_TYPE (EomListStore, eom_list_store, GTK_TYPE_LIST_STORE);
-
struct _EomListStorePrivate {
GList *monitors; /* Monitors for the directories */
gint initial_image; /* The image that should be selected firstly by the view. */
@@ -42,6 +40,8 @@ struct _EomListStorePrivate {
GMutex mutex; /* Mutex for saving the jobs in the model */
};
+G_DEFINE_TYPE_WITH_PRIVATE (EomListStore, eom_list_store, GTK_TYPE_LIST_STORE);
+
static void
foreach_monitors_free (gpointer data, gpointer user_data)
{
@@ -81,8 +81,6 @@ eom_list_store_class_init (EomListStoreClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = eom_list_store_dispose;
-
- g_type_class_add_private (object_class, sizeof (EomListStorePrivate));
}
/*
@@ -152,7 +150,7 @@ eom_list_store_init (EomListStore *self)
gtk_list_store_set_column_types (GTK_LIST_STORE (self),
EOM_LIST_STORE_NUM_COLUMNS, types);
- self->priv = EOM_LIST_STORE_GET_PRIVATE (self);
+ self->priv = eom_list_store_get_instance_private (self);
self->priv->monitors = NULL;
self->priv->initial_image = -1;