From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 11:57:42 +0000 (+0300) Subject: MapWidget: Re-center on resize X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a89aa655638cb24272cc2534834d926519f5f23d;p=mapper MapWidget: Re-center on resize --- diff --git a/libs/libgtkmap/gtkmap.c b/libs/libgtkmap/gtkmap.c index 9268561..4e8253e 100644 --- a/libs/libgtkmap/gtkmap.c +++ b/libs/libgtkmap/gtkmap.c @@ -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 */