[geocode-glib] place: make icon property read-only



commit 604ebf12cb37745e3977d41161f93f9b93bf72ea
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sat Jan 11 07:02:28 2014 +0100

    place: make icon property read-only
    
    The icon for a place is now derived from its type. Having the icon
    property READWRITE does not make sense.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720250

 geocode-glib/geocode-place.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/geocode-glib/geocode-place.c b/geocode-glib/geocode-place.c
index 7209e6b..15f73b4 100644
--- a/geocode-glib/geocode-place.c
+++ b/geocode-glib/geocode-place.c
@@ -248,10 +248,6 @@ geocode_place_set_property(GObject      *object,
                 geocode_place_set_continent (place, g_value_get_string (value));
                 break;
 
-        case PROP_ICON:
-                /* nothing to do */
-                break;
-
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
                 break;
@@ -500,7 +496,7 @@ geocode_place_class_init (GeocodePlaceClass *klass)
                                      "Icon",
                                      "An icon representing the the place",
                                      G_TYPE_ICON,
-                                     G_PARAM_READWRITE |
+                                     G_PARAM_READABLE |
                                      G_PARAM_STATIC_STRINGS);
         g_object_class_install_property (gplace_class, PROP_ICON, pspec);
 }


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