/soc/2013/ankitkv/gobjectification: 26c2cf81a97a: Added G_PARAM_...
Ankit Vani
a at nevitus.org
Sun Nov 17 05:36:26 EST 2013
Changeset: 26c2cf81a97aab39d5afc1a472e0b28e028ee9b7
Author: Ankit Vani <a at nevitus.org>
Date: 2013-11-17 16:05 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/26c2cf81a97a
Description:
Added G_PARAM_STATIC_STRINGS flag to PluginInfo properties
diffstat:
finch/gntplugin.c | 3 ++-
libpurple/plugins.c | 14 +++++++++-----
pidgin/gtkplugin.c | 3 ++-
3 files changed, 13 insertions(+), 7 deletions(-)
diffs (71 lines):
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -131,7 +131,8 @@ static void finch_plugin_info_class_init
g_param_spec_pointer("gnt-pref-frame-cb",
"GNT preferences frame callback",
"Callback that returns a GNT preferences frame",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
GType
diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -493,32 +493,36 @@ static void purple_plugin_info_class_ini
g_param_spec_string("ui-requirement",
"UI Requirement",
"ID of UI that is required by this plugin", NULL,
- G_PARAM_WRITABLE));
+ G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property(obj_class, PROP_ACTIONS_CB,
g_param_spec_pointer("actions-cb",
"Plugin actions",
"Callback that returns list of plugin's actions",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property(obj_class, PROP_PREF_FRAME_CB,
g_param_spec_pointer("pref-frame-cb",
"Preferences frame callback",
"The callback that returns the preferences frame",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property(obj_class, PROP_PREF_REQUEST_CB,
g_param_spec_pointer("pref-request-cb",
"Preferences request callback",
"Callback that returns preferences request handle",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
g_object_class_install_property(obj_class, PROP_FLAGS,
g_param_spec_flags("flags",
"Plugin flags",
"The flags for the plugin",
PURPLE_TYPE_PLUGIN_INFO_FLAGS, 0,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
/**************************************************************************
diff --git a/pidgin/gtkplugin.c b/pidgin/gtkplugin.c
--- a/pidgin/gtkplugin.c
+++ b/pidgin/gtkplugin.c
@@ -139,7 +139,8 @@ static void pidgin_plugin_info_class_ini
g_param_spec_pointer("gtk-config-frame-cb",
"GTK configuration frame callback",
"Callback that returns a GTK configuration frame",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+ G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
+ G_PARAM_STATIC_STRINGS));
}
GType
More information about the Commits
mailing list