[glib] gaction: update property flags to match needs of GSimpleAction
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gaction: update property flags to match needs of GSimpleAction
- Date: Tue, 28 Dec 2010 11:27:21 +0000 (UTC)
commit 408a9fcbcc175435bdf62354102e919dc4e4b4e7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 28 12:24:39 2010 +0100
gaction: update property flags to match needs of GSimpleAction
Commit 068d53358bd366c26cff604a3de53b3cf734b08f uncovered this mismatch
between properties on the interface and those on the implementation.
Update them so they match.
gio/gaction.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gio/gaction.c b/gio/gaction.c
index 6c2ee1d..15fe23a 100644
--- a/gio/gaction.c
+++ b/gio/gaction.c
@@ -77,7 +77,8 @@ g_action_default_init (GActionInterface *iface)
P_("Action Name"),
P_("The name used to invoke the action"),
NULL,
- G_PARAM_READABLE |
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
@@ -93,7 +94,8 @@ g_action_default_init (GActionInterface *iface)
P_("Parameter Type"),
P_("The type of GVariant passed to activate()"),
G_TYPE_VARIANT_TYPE,
- G_PARAM_READABLE |
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
@@ -111,7 +113,8 @@ g_action_default_init (GActionInterface *iface)
P_("Enabled"),
P_("If the action can be activated"),
TRUE,
- G_PARAM_READABLE |
+ G_PARAM_CONSTRUCT |
+ G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]