[glib] validate_and_install_property(): Check pspec-specific fields	in the same order as g_object_interface
- From: Federico Mena Quintero <federico src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [glib] validate_and_install_property(): Check pspec-specific fields	in the same order as g_object_interface
 
- Date: Mon, 11 Sep 2017 17:46:46 +0000 (UTC)
 
commit 20720eaf1e258e8b2189da1d6e84eccf1426a889
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Sep 11 09:37:07 2017 -0500
    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 6546d1a..f4266e3 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))
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]