| 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 */ |