summaryrefslogtreecommitdiff
path: root/src/eom-exif-details.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-exif-details.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-exif-details.c')
-rw-r--r--src/eom-exif-details.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/eom-exif-details.c b/src/eom-exif-details.c
index 0fdb0eb..2203a60 100644
--- a/src/eom-exif-details.c
+++ b/src/eom-exif-details.c
@@ -40,11 +40,6 @@
#include <string.h>
-#define EOM_EXIF_DETAILS_GET_PRIVATE(object) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_EXIF_DETAILS, EomExifDetailsPrivate))
-
-G_DEFINE_TYPE (EomExifDetails, eom_exif_details, GTK_TYPE_TREE_VIEW)
-
typedef enum {
EXIF_CATEGORY_CAMERA,
EXIF_CATEGORY_IMAGE_DATA,
@@ -209,6 +204,8 @@ static char* set_row_data (GtkTreeStore *store, char *path, char *parent, const
static void eom_exif_details_reset (EomExifDetails *exif_details);
+G_DEFINE_TYPE_WITH_PRIVATE (EomExifDetails, eom_exif_details, GTK_TYPE_TREE_VIEW)
+
static void
eom_exif_details_dispose (GObject *object)
{
@@ -240,7 +237,7 @@ eom_exif_details_init (EomExifDetails *exif_details)
GtkTreeViewColumn *column;
GtkCellRenderer *cell;
- exif_details->priv = EOM_EXIF_DETAILS_GET_PRIVATE (exif_details);
+ exif_details->priv = eom_exif_details_get_instance_private (exif_details);
priv = exif_details->priv;
@@ -277,8 +274,6 @@ eom_exif_details_class_init (EomExifDetailsClass *klass)
GObjectClass *object_class = (GObjectClass*) klass;
object_class->dispose = eom_exif_details_dispose;
-
- g_type_class_add_private (object_class, sizeof (EomExifDetailsPrivate));
}
#ifdef HAVE_EXIF