[libdazzle] properties-group: be consistent with flags naming



commit d0c261f70731c1ad11b79d110b9ab648904f30cf
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 7 03:10:11 2017 -0700

    properties-group: be consistent with flags naming

 src/actions/dzl-properties-group.c |   24 ++++++++++++------------
 src/actions/dzl-properties-group.h |   24 ++++++++++++------------
 2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/src/actions/dzl-properties-group.c b/src/actions/dzl-properties-group.c
index 3114987..16d7db2 100644
--- a/src/actions/dzl-properties-group.c
+++ b/src/actions/dzl-properties-group.c
@@ -72,12 +72,12 @@ struct _DzlPropertiesGroup
 
 typedef struct
 {
-  const gchar             *action_name;
-  const GVariantType      *param_type;
-  const GVariantType      *state_type;
-  const gchar             *property_name;
-  GType                    property_type;
-  DzlPropertiesGroupFlags  flags;
+  const gchar        *action_name;
+  const GVariantType *param_type;
+  const GVariantType *state_type;
+  const gchar        *property_name;
+  GType               property_type;
+  DzlPropertiesFlags  flags;
 } Mapping;
 
 enum {
@@ -455,8 +455,8 @@ dzl_properties_group_notify (DzlPropertiesGroup *self,
 }
 
 static const GVariantType *
-get_param_type_for_type (GType                   type,
-                         DzlPropertiesGroupFlags flags)
+get_param_type_for_type (GType              type,
+                         DzlPropertiesFlags flags)
 {
   switch (type)
     {
@@ -665,10 +665,10 @@ dzl_properties_group_new (GObject *object)
  * Since: 3.26
  */
 void
-dzl_properties_group_add_property_full (DzlPropertiesGroup      *self,
-                                        const gchar             *name,
-                                        const gchar             *property_name,
-                                        DzlPropertiesGroupFlags  flags)
+dzl_properties_group_add_property_full (DzlPropertiesGroup *self,
+                                        const gchar        *name,
+                                        const gchar        *property_name,
+                                        DzlPropertiesFlags  flags)
 {
   g_autoptr(GObject) object = NULL;
   GObjectClass *object_class;
diff --git a/src/actions/dzl-properties-group.h b/src/actions/dzl-properties-group.h
index ecc09ba..b769cce 100644
--- a/src/actions/dzl-properties-group.h
+++ b/src/actions/dzl-properties-group.h
@@ -30,17 +30,17 @@ typedef enum
 {
   DZL_PROPERTIES_FLAGS_NONE,
   DZL_PROPERTIES_FLAGS_STATEFUL_BOOLEANS = 1 << 0,
-} DzlPropertiesGroupFlags;
-
-DzlPropertiesGroup *dzl_properties_group_new               (GObject                 *object);
-void                dzl_properties_group_add_property      (DzlPropertiesGroup      *self,
-                                                            const gchar             *name,
-                                                            const gchar             *property_name);
-void                dzl_properties_group_add_property_full (DzlPropertiesGroup      *self,
-                                                            const gchar             *name,
-                                                            const gchar             *property_name,
-                                                            DzlPropertiesGroupFlags  flags);
-void                dzl_properties_group_remove            (DzlPropertiesGroup      *self,
-                                                            const gchar             *name);
+} DzlPropertiesFlags;
+
+DzlPropertiesGroup *dzl_properties_group_new               (GObject            *object);
+void                dzl_properties_group_add_property      (DzlPropertiesGroup *self,
+                                                            const gchar        *name,
+                                                            const gchar        *property_name);
+void                dzl_properties_group_add_property_full (DzlPropertiesGroup *self,
+                                                            const gchar        *name,
+                                                            const gchar        *property_name,
+                                                            DzlPropertiesFlags  flags);
+void                dzl_properties_group_remove            (DzlPropertiesGroup *self,
+                                                            const gchar        *name);
 
 G_END_DECLS


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