[glib] Fix the icon property implementation



commit 642e9c75400cc12f0fad26e3f3df5ac6a39e0822
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 15 00:45:55 2009 -0400

    Fix the icon property implementation
    
    Turns out both the setter and the getter were broken...
    Fixes bug 585676.

 gio/gemblem.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/gemblem.c b/gio/gemblem.c
index 0272bc7..461fe29 100644
--- a/gio/gemblem.c
+++ b/gio/gemblem.c
@@ -82,6 +82,7 @@ g_emblem_get_property (GObject    *object,
     {
       case PROP_ICON:
         g_value_set_object (value, emblem->icon);
+	break;
 
       case PROP_ORIGIN:
         g_value_set_enum (value, emblem->origin);
@@ -104,7 +105,7 @@ g_emblem_set_property (GObject      *object,
   switch (prop_id)
     {
       case PROP_ICON:
-        emblem->icon = g_value_get_object (value);
+        emblem->icon = g_value_dup_object (value);
         break;
 
       case PROP_ORIGIN:



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