[pygobject] Fix setting of struct property values



commit cd91e1d5db617d470acbf8c5bc74c11c92f946f6
Author: Daniel Drake <dsd laptop org>
Date:   Mon Mar 18 15:11:16 2013 -0600

    Fix setting of struct property values
    
    "goto out" in this context means that an error occurred, but this
    particular instance was sitting in the "good" codepath.
    
    Fixes setting of struct property values.

 gi/pygi-property.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gi/pygi-property.c b/gi/pygi-property.c
index a5464ab..3f6d038 100644
--- a/gi/pygi-property.c
+++ b/gi/pygi-property.c
@@ -336,8 +336,9 @@ pygi_set_property_value_real (PyGObject *instance,
                         PyErr_Format (PyExc_NotImplementedError,
                                       "Setting properties of type '%s' is not implemented",
                                       g_type_name (type));
+                        goto out;
                     }
-                    goto out;
+                    break;
                 default:
                     PyErr_Format (PyExc_NotImplementedError,
                                   "Setting properties of type '%s' is not implemented",


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