libpurple/glibcompat.h

branch
soc.2013.gobjectification
changeset 35081
eda7bae766d4
parent 35073
46b7a39e45ec
child 35190
5986ee34c476
equal deleted inserted replaced
35080:58bddd91956c 35081:eda7bae766d4
78 static inline void g_object_notify_by_pspec(GObject *object, GParamSpec *pspec) 78 static inline void g_object_notify_by_pspec(GObject *object, GParamSpec *pspec)
79 { 79 {
80 g_object_notify(object, g_param_spec_get_name(pspec)); 80 g_object_notify(object, g_param_spec_get_name(pspec));
81 } 81 }
82 82
83 static inline void g_object_class_install_properties(GObjectClass *oclass,
84 guint n_pspecs, GParamSpec **pspecs)
85 {
86 gint i;
87 for (i = 1; i < n_pspecs; ++i)
88 g_object_class_install_property(oclass, i, pspecs[i]);
89 }
90
83 #endif /* < 2.26.0 */ 91 #endif /* < 2.26.0 */
84 92
85 #endif /* < 2.28.0 */ 93 #endif /* < 2.28.0 */
86 94
87 #endif /* < 2.32.0 */ 95 #endif /* < 2.32.0 */

mercurial