libpurple/glibcompat.h

branch
soc.2013.gobjectification
changeset 35073
46b7a39e45ec
parent 34462
d51759c13fde
child 35081
eda7bae766d4
--- a/libpurple/glibcompat.h	Mon Nov 18 01:09:52 2013 +0530
+++ b/libpurple/glibcompat.h	Tue Nov 19 13:49:59 2013 +0530
@@ -73,6 +73,15 @@
 	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 */

mercurial