summaryrefslogtreecommitdiff
path: root/src/eom-image.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-image.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-image.c')
-rw-r--r--src/eom-image.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index ab91ef1..5cd4839 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -69,10 +69,7 @@
#include <librsvg/rsvg.h>
#endif
-#define EOM_IMAGE_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_IMAGE, EomImagePrivate))
-
-G_DEFINE_TYPE (EomImage, eom_image, G_TYPE_OBJECT)
+G_DEFINE_TYPE_WITH_PRIVATE (EomImage, eom_image, G_TYPE_OBJECT)
enum {
SIGNAL_CHANGED,
@@ -277,14 +274,12 @@ eom_image_class_init (EomImageClass *klass)
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
-
- g_type_class_add_private (object_class, sizeof (EomImagePrivate));
}
static void
eom_image_init (EomImage *img)
{
- img->priv = EOM_IMAGE_GET_PRIVATE (img);
+ img->priv = eom_image_get_instance_private (img);
img->priv->file = NULL;
img->priv->image = NULL;