[glib] GAction: back out changes to property flags



commit ebf572cdd81d8c0fca4641f9204dc0421ad1bf5d
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue Dec 20 14:43:15 2011 -0500

    GAction: back out changes to property flags
    
    41e5ba86a791a17bb560dd7813ad7e849e0230dc introduced some changes to the
    property flags of GAction.  These changes were not a reflection of the
    actual interface of GAction but were necessary due to GObject being
    overly-sensitive to flag changes on property overrides.
    
    Now that the GObject bug is fixed, we can restore the GAction flags to
    their correct values.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=666615

 gio/gaction.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gio/gaction.c b/gio/gaction.c
index 18318b0..3329830 100644
--- a/gio/gaction.c
+++ b/gio/gaction.c
@@ -94,8 +94,7 @@ g_action_default_init (GActionInterface *iface)
                                                             P_("Action Name"),
                                                             P_("The name used to invoke the action"),
                                                             NULL,
-                                                            G_PARAM_READWRITE |
-							    G_PARAM_CONSTRUCT_ONLY |
+                                                            G_PARAM_READABLE |
                                                             G_PARAM_STATIC_STRINGS));
 
   /**
@@ -111,8 +110,7 @@ g_action_default_init (GActionInterface *iface)
                                                            P_("Parameter Type"),
                                                            P_("The type of GVariant passed to activate()"),
                                                            G_TYPE_VARIANT_TYPE,
-							   G_PARAM_READWRITE |
-							   G_PARAM_CONSTRUCT_ONLY |
+                                                           G_PARAM_READABLE |
                                                            G_PARAM_STATIC_STRINGS));
 
   /**
@@ -130,8 +128,7 @@ g_action_default_init (GActionInterface *iface)
                                                              P_("Enabled"),
                                                              P_("If the action can be activated"),
                                                              TRUE,
-							     G_PARAM_READWRITE |
-							     G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_READABLE |
                                                              G_PARAM_STATIC_STRINGS));
 
   /**
@@ -163,8 +160,7 @@ g_action_default_init (GActionInterface *iface)
                                                              P_("The state the action is in"),
                                                              G_VARIANT_TYPE_ANY,
                                                              NULL,
-							     G_PARAM_READWRITE |
-							     G_PARAM_CONSTRUCT_ONLY |
+                                                             G_PARAM_READABLE |
                                                              G_PARAM_STATIC_STRINGS));
 }
 



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