From 20720eaf1e258e8b2189da1d6e84eccf1426a889 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 11 Sep 2017 09:37:07 -0500 Subject: [PATCH] validate_and_install_property(): Check pspec-specific fields in the same order as g_object_interface_install_property() https://bugzilla.gnome.org/show_bug.cgi?id=787551 --- gobject/gobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gobject.c b/gobject/gobject.c index 6546d1ad3..f4266e3be 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -538,8 +538,8 @@ validate_and_install_class_property (GObjectClass *class, GParamSpec *pspec) { g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), FALSE); - g_return_val_if_fail (pspec->flags & (G_PARAM_READABLE | G_PARAM_WRITABLE), FALSE); g_return_val_if_fail (PARAM_SPEC_PARAM_ID (pspec) == 0, FALSE); /* paranoid */ + g_return_val_if_fail (pspec->flags & (G_PARAM_READABLE | G_PARAM_WRITABLE), FALSE); if (pspec->flags & G_PARAM_CONSTRUCT) g_return_val_if_fail ((pspec->flags & G_PARAM_CONSTRUCT_ONLY) == 0, FALSE); if (pspec->flags & (G_PARAM_CONSTRUCT | G_PARAM_CONSTRUCT_ONLY))