+static void
+terraserver_map_source_set_property (GObject *object,
+ guint property_id,
+ const GValue *value,
+ GParamSpec *pspec)
+{
+ TerraserverMapSource *self = TERRASERVER_MAP_SOURCE (object);
+ TerraserverMapSourcePrivate *priv = TERRASERVER_MAP_SOURCE_PRIVATE (self);
+
+ switch (property_id)
+ {
+ case PROP_TYPE:
+ priv->type = g_value_get_uint (value);
+ break;
+
+ default:
+ /* We don't have any other property... */
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ break;
+ }
+}
+
+static void
+terraserver_map_source_get_property (GObject *object,
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ TerraserverMapSource *self = TERRASERVER_MAP_SOURCE (object);
+ TerraserverMapSourcePrivate *priv = TERRASERVER_MAP_SOURCE_PRIVATE (self);
+
+ switch (property_id)
+ {
+ case PROP_TYPE:
+ g_value_set_uint (value, priv->type);
+ break;
+
+ default:
+ /* We don't have any other property... */
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ break;
+ }
+}
+