From a89aa655638cb24272cc2534834d926519f5f23d Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 14:57:42 +0300 Subject: [PATCH] MapWidget: Re-center on resize --- libs/libgtkmap/gtkmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5