[glib] GSimpleAction: tweak property flags



commit 342e2faa2996601bc44413087b3d70560dad78aa
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Dec 20 19:11:19 2011 -0500

    GSimpleAction: tweak property flags
    
    There's no need for 'enabled' and 'state' to be marked construct-only.
    These properties are writable at all times.

 gio/gsimpleaction.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gio/gsimpleaction.c b/gio/gsimpleaction.c
index d05644d..9ac051b 100644
--- a/gio/gsimpleaction.c
+++ b/gio/gsimpleaction.c
@@ -401,7 +401,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
                                                         P_("The name used to invoke the action"),
                                                         NULL,
                                                         G_PARAM_READWRITE |
-							G_PARAM_CONSTRUCT_ONLY |
+                                                        G_PARAM_CONSTRUCT_ONLY |
                                                         G_PARAM_STATIC_STRINGS));
 
   /**
@@ -418,7 +418,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
                                                        P_("The type of GVariant passed to activate()"),
                                                        G_TYPE_VARIANT_TYPE,
                                                        G_PARAM_READWRITE |
-						       G_PARAM_CONSTRUCT_ONLY |
+                                                       G_PARAM_CONSTRUCT_ONLY |
                                                        G_PARAM_STATIC_STRINGS));
 
   /**
@@ -436,8 +436,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
                                                          P_("Enabled"),
                                                          P_("If the action can be activated"),
                                                          TRUE,
-							 G_PARAM_READWRITE |
-							 G_PARAM_CONSTRUCT_ONLY |
+                                                         G_PARAM_READWRITE |
                                                          G_PARAM_STATIC_STRINGS));
 
   /**
@@ -469,8 +468,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
                                                          P_("The state the action is in"),
                                                          G_VARIANT_TYPE_ANY,
                                                          NULL,
-							 G_PARAM_READWRITE |
-							 G_PARAM_CONSTRUCT_ONLY |
+                                                         G_PARAM_READWRITE |
                                                          G_PARAM_STATIC_STRINGS));
 }
 



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