mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
GObject: prevent installing properties after init
GObject has previously allowed installing properties after class_init has finished running. This means that you could install some of your own properties on G_TYPE_OBJECT, for example, although they wouldn't have worked properly. Prevent this from happening. Require that all properties are installed by the time class_init has finished. Complaints go to this bug: https://bugzilla.gnome.org/show_bug.cgi?id=698614
This commit is contained in:
@@ -72,6 +72,7 @@ void _g_closure_invoke_va (GClosure *closure,
|
||||
int n_params,
|
||||
GType *param_types);
|
||||
|
||||
gboolean g_type_is_in_init (GType type);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user