]> err.no Git - libchamplain/commitdiff
Fix Actor clean-up
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 25 Mar 2009 18:23:12 +0000 (20:23 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 25 Mar 2009 18:23:12 +0000 (20:23 +0200)
champlain/champlain-network-map-source.c
champlain/champlain-view.c

index 5c77a9deaec41cd137646e8b80edd0b00375f144..29430796f889abada4dae7cba3b19bb66587de5e 100644 (file)
@@ -514,7 +514,6 @@ champlain_network_map_source_get_tile (ChamplainMapSource *map_source,
       champlain_tile_set_state (tile, CHAMPLAIN_STATE_DONE);
       DEBUG ("Tile loaded from cache");
       champlain_view_tile_ready (view, zoom_level, tile, FALSE);
-      g_object_unref (actor);
       g_object_unref (tile);
       g_object_unref (zoom_level);
     }
index f4bd2bc49327288d90389496613b6b2be26afc66..5da6db8641b2c0d60dd7b7589eed3f007b24df2d 100644 (file)
@@ -1380,9 +1380,10 @@ view_position_tile (ChamplainView* view, ChamplainTile* tile)
   gint y;
   guint size;
 
-  g_object_get (G_OBJECT (tile), "actor", &actor,
-      "x", &x, "y", &y,
-      "size", &size, NULL);
+  actor = champlain_tile_get_actor (tile);
+  x = champlain_tile_get_x (tile);
+  y = champlain_tile_get_y (tile);
+  size = champlain_tile_get_size (tile);
 
   clutter_actor_set_position (actor,
     (x * size) - priv->anchor.x,