[gimp] libgimpconfig: add GIMP_CONFIG_PROP_INT64() and GIMP_CONFIG_PROP_UINT64()



commit 4a5b740828e747464f048f3d062cca086d7bbfac
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jul 23 15:17:12 2017 +0200

    libgimpconfig: add GIMP_CONFIG_PROP_INT64() and GIMP_CONFIG_PROP_UINT64()
    
    While all serialize and deserialize code is supporting 64-bit ints for
    quite a while, we didn't have convenience macros to install properties.

 libgimpconfig/gimpconfig-params.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-params.h b/libgimpconfig/gimpconfig-params.h
index 4bc4c45..2c988f8 100644
--- a/libgimpconfig/gimpconfig-params.h
+++ b/libgimpconfig/gimpconfig-params.h
@@ -89,6 +89,18 @@ G_BEGIN_DECLS
                                    min, max, default,\
                                    flags | GIMP_CONFIG_PARAM_FLAGS))
 
+#define GIMP_CONFIG_PROP_INT64(class, id, name, nick, blurb, min, max, default, flags) \
+  g_object_class_install_property (class, id,\
+                                   g_param_spec_int64 (name, nick, blurb,\
+                                   min, max, default,\
+                                   flags | GIMP_CONFIG_PARAM_FLAGS))
+
+#define GIMP_CONFIG_PROP_UINT64(class, id, name, nick, blurb, min, max, default, flags) \
+  g_object_class_install_property (class, id,\
+                                   g_param_spec_uint64 (name, nick, blurb,\
+                                   min, max, default,\
+                                   flags | GIMP_CONFIG_PARAM_FLAGS))
+
 #define GIMP_CONFIG_PROP_UNIT(class, id, name, nick, blurb, pixels, percent, default, flags) \
   g_object_class_install_property (class, id,\
                                    gimp_param_spec_unit (name, nick, blurb,\


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]