]> err.no Git - mapper/commitdiff
MapWidget: Re-center on resize
authorKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 11:57:42 +0000 (14:57 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 11:57:42 +0000 (14:57 +0300)
libs/libgtkmap/gtkmap.c

index 92685616024f39979195737357ee6f8ca70acae8..4e8253ed07c6a94305c9259c5962f3a797a124c5 100644 (file)
@@ -767,7 +767,7 @@ if (GTK_WIDGET_REALIZED(widget)) {
        g_debug("Realized");
        gdk_window_move_resize(widget->window, allocation->x, allocation->y, allocation->width, allocation->height);
        gtk_map_update_size(widget, allocation->width, allocation->height);
-       gtk_map_refresh(widget);
+       gtk_map_set_center(widget, priv->center.unitx, priv->center.unity);
 } else {
        g_debug("Not realized yet");
 }
@@ -2013,7 +2013,7 @@ g_signal_emit(widget, gtk_map_signals[MAP_LOCATION_CHANGED], 0, priv->zoom);
 /**
  * gtk_map_set_center_latlon:
  * @lat: Latitude to center on
- * @lon: Longitude to center on
+ * @lon: Longitude to center on
  * 
  * Centers map view on given lat,lon
  */