/soc/2013/ankitkv/gobjectification: 46b7a39e45ec: Added g_object...
Ankit Vani
a at nevitus.org
Tue Nov 19 03:39:00 EST 2013
Changeset: 46b7a39e45ec8298ee5ec67c0c2b7f9e3caf8247
Author: Ankit Vani <a at nevitus.org>
Date: 2013-11-19 13:49 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/46b7a39e45ec
Description:
Added g_object_notify_by_pspec to glibcompat.h
diffstat:
libpurple/glibcompat.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diffs (19 lines):
diff --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -73,6 +73,15 @@ static inline void g_slist_free_full(GSL
g_slist_free(list);
}
+#if !GLIB_CHECK_VERSION(2, 26, 0)
+
+static inline void g_object_notify_by_pspec(GObject *object, GParamSpec *pspec)
+{
+ g_object_notify(object, g_param_spec_get_name(pspec));
+}
+
+#endif /* < 2.26.0 */
+
#endif /* < 2.28.0 */
#endif /* < 2.32.0 */
More information about the Commits
mailing list