[gimp] libgimpbase: make the GimpParamSpecUnit struct public
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpbase: make the GimpParamSpecUnit struct public
- Date: Tue, 30 Jul 2019 13:03:37 +0000 (UTC)
commit 65a8ae2c916ba2511977970d48754020feeee14f
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 30 15:03:03 2019 +0200
libgimpbase: make the GimpParamSpecUnit struct public
like all other param specs.
libgimpbase/gimpunit.c | 11 -----------
libgimpbase/gimpunit.h | 14 ++++++++++++--
2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/libgimpbase/gimpunit.c b/libgimpbase/gimpunit.c
index 44f248f673..e6f2df2c0b 100644
--- a/libgimpbase/gimpunit.c
+++ b/libgimpbase/gimpunit.c
@@ -531,17 +531,6 @@ gimp_unit_format_string (const gchar *format,
* GIMP_TYPE_PARAM_UNIT
*/
-#define GIMP_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_UNIT,
GimpParamSpecUnit))
-
-typedef struct _GimpParamSpecUnit GimpParamSpecUnit;
-
-struct _GimpParamSpecUnit
-{
- GParamSpecInt parent_instance;
-
- gboolean allow_percent;
-};
-
static void gimp_param_unit_class_init (GParamSpecClass *class);
static gboolean gimp_param_unit_value_validate (GParamSpec *pspec,
GValue *value);
diff --git a/libgimpbase/gimpunit.h b/libgimpbase/gimpunit.h
index c24d94ea35..a88b7629f2 100644
--- a/libgimpbase/gimpunit.h
+++ b/libgimpbase/gimpunit.h
@@ -46,8 +46,18 @@ GType gimp_unit_get_type (void) G_GNUC_CONST;
* GIMP_TYPE_PARAM_UNIT
*/
-#define GIMP_TYPE_PARAM_UNIT (gimp_param_unit_get_type ())
-#define GIMP_IS_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_UNIT))
+#define GIMP_TYPE_PARAM_UNIT (gimp_param_unit_get_type ())
+#define GIMP_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_CAST ((pspec), GIMP_TYPE_PARAM_UNIT,
GimpParamSpecUnit))
+#define GIMP_IS_PARAM_SPEC_UNIT(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GIMP_TYPE_PARAM_UNIT))
+
+typedef struct _GimpParamSpecUnit GimpParamSpecUnit;
+
+struct _GimpParamSpecUnit
+{
+ GParamSpecInt parent_instance;
+
+ gboolean allow_percent;
+};
GType gimp_param_unit_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]