[gexiv2] Remove _GET_PRIVATE macros from public headers
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gexiv2] Remove _GET_PRIVATE macros from public headers
- Date: Sat, 1 Oct 2016 09:59:32 +0000 (UTC)
commit 2eca7c157526a786c994f612a671dd729660cab9
Author: Jens Georg <mail jensge org>
Date: Sun Jul 17 17:55:50 2016 +0200
Remove _GET_PRIVATE macros from public headers
Signed-off-by: Jens Georg <mail jensge org>
gexiv2/gexiv2-metadata.cpp | 4 ++++
gexiv2/gexiv2-metadata.h | 3 ---
gexiv2/gexiv2-preview-image.cpp | 3 +++
gexiv2/gexiv2-preview-image.h | 3 ---
gexiv2/gexiv2-preview-properties.cpp | 3 +++
gexiv2/gexiv2-preview-properties.h | 3 ---
6 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/gexiv2/gexiv2-metadata.cpp b/gexiv2/gexiv2-metadata.cpp
index 8aa4d45..cb89a52 100644
--- a/gexiv2/gexiv2-metadata.cpp
+++ b/gexiv2/gexiv2-metadata.cpp
@@ -30,6 +30,10 @@
G_BEGIN_DECLS
+
+#define GEXIV2_METADATA_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_METADATA, GExiv2MetadataPrivate))
+
G_DEFINE_TYPE (GExiv2Metadata, gexiv2_metadata, G_TYPE_OBJECT);
static void gexiv2_metadata_finalize (GObject *object);
diff --git a/gexiv2/gexiv2-metadata.h b/gexiv2/gexiv2-metadata.h
index 5312f7b..f457483 100644
--- a/gexiv2/gexiv2-metadata.h
+++ b/gexiv2/gexiv2-metadata.h
@@ -37,9 +37,6 @@ G_BEGIN_DECLS
#define GEXIV2_METADATA_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GEXIV2_TYPE_METADATA, GExiv2MetadataClass))
-#define GEXIV2_METADATA_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_METADATA, GExiv2MetadataPrivate))
-
/**
* Gexiv2Orientation:
diff --git a/gexiv2/gexiv2-preview-image.cpp b/gexiv2/gexiv2-preview-image.cpp
index df4f2b4..98b3209 100644
--- a/gexiv2/gexiv2-preview-image.cpp
+++ b/gexiv2/gexiv2-preview-image.cpp
@@ -13,6 +13,9 @@
#include <gio/gio.h>
G_BEGIN_DECLS
+#define GEXIV2_PREVIEW_IMAGE_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImagePrivate))
+
G_DEFINE_TYPE (GExiv2PreviewImage, gexiv2_preview_image, G_TYPE_OBJECT);
static void gexiv2_preview_image_finalize (GObject *object);
diff --git a/gexiv2/gexiv2-preview-image.h b/gexiv2/gexiv2-preview-image.h
index d9938e9..bec59b6 100644
--- a/gexiv2/gexiv2-preview-image.h
+++ b/gexiv2/gexiv2-preview-image.h
@@ -33,9 +33,6 @@ G_BEGIN_DECLS
#define GEXIV2_PREVIEW_IMAGE_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImageClass))
-#define GEXIV2_PREVIEW_IMAGE_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImagePrivate))
-
typedef struct _GExiv2PreviewImage GExiv2PreviewImage;
typedef struct _GExiv2PreviewImageClass GExiv2PreviewImageClass;
diff --git a/gexiv2/gexiv2-preview-properties.cpp b/gexiv2/gexiv2-preview-properties.cpp
index cda1b13..6aaf485 100644
--- a/gexiv2/gexiv2-preview-properties.cpp
+++ b/gexiv2/gexiv2-preview-properties.cpp
@@ -13,6 +13,9 @@
#include <gio/gio.h>
G_BEGIN_DECLS
+#define GEXIV2_PREVIEW_PROPERTIES_GET_PRIVATE(obj) \
+ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_PREVIEW_PROPERTIES, GExiv2PreviewPropertiesPrivate))
+
G_DEFINE_TYPE (GExiv2PreviewProperties, gexiv2_preview_properties, G_TYPE_OBJECT);
static void gexiv2_preview_properties_finalize (GObject *object);
diff --git a/gexiv2/gexiv2-preview-properties.h b/gexiv2/gexiv2-preview-properties.h
index 92dc1f2..9331a04 100644
--- a/gexiv2/gexiv2-preview-properties.h
+++ b/gexiv2/gexiv2-preview-properties.h
@@ -33,9 +33,6 @@ G_BEGIN_DECLS
#define GEXIV2_PREVIEW_PROPERTIES_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GEXIV2_TYPE_PREVIEW_PROPERTIES, GExiv2PreviewPropertiesClass))
-#define GEXIV2_PREVIEW_PROPERTIES_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GEXIV2_TYPE_PREVIEW_PROPERTIES, GExiv2PreviewPropertiesPrivate))
-
typedef struct _GExiv2PreviewProperties GExiv2PreviewProperties;
typedef struct _GExiv2PreviewPropertiesClass GExiv2PreviewPropertiesClass;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]