/soc/2013/ankitkv/gobjectification: eda7bae766d4: Added g_object...
Ankit Vani
a at nevitus.org
Sat Nov 23 15:46:27 EST 2013
Changeset: eda7bae766d494f560449ad4db4967ae5721f927
Author: Ankit Vani <a at nevitus.org>
Date: 2013-11-24 01:37 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/eda7bae766d4
Description:
Added g_object_class_install_properties to glibcompat.h
diffstat:
libpurple/glibcompat.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (18 lines):
diff --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -80,6 +80,14 @@ static inline void g_object_notify_by_ps
g_object_notify(object, g_param_spec_get_name(pspec));
}
+static inline void g_object_class_install_properties(GObjectClass *oclass,
+ guint n_pspecs, GParamSpec **pspecs)
+{
+ gint i;
+ for (i = 1; i < n_pspecs; ++i)
+ g_object_class_install_property(oclass, i, pspecs[i]);
+}
+
#endif /* < 2.26.0 */
#endif /* < 2.28.0 */
More information about the Commits
mailing list