[glib] g_object_interface_install_property(): Do interface-specific validations first



commit 1b08414f061ce217fec473b519dd1ba71c31bc3b
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Sep 11 09:34:52 2017 -0500

    g_object_interface_install_property(): Do interface-specific validations first
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787551

 gobject/gobject.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 762bb92..bb46838 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -745,8 +745,9 @@ g_object_interface_install_property (gpointer      g_iface,
   GTypeInterface *iface_class = g_iface;
        
   g_return_if_fail (G_TYPE_IS_INTERFACE (iface_class->g_type));
-  g_return_if_fail (G_IS_PARAM_SPEC (pspec));
   g_return_if_fail (!G_IS_PARAM_SPEC_OVERRIDE (pspec)); /* paranoid */
+
+  g_return_if_fail (G_IS_PARAM_SPEC (pspec));
   g_return_if_fail (PARAM_SPEC_PARAM_ID (pspec) == 0); /* paranoid */
 
   g_return_if_fail (pspec->flags & (G_PARAM_READABLE | G_PARAM_WRITABLE));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]