return TRUE;
}
+static void
+map_zoom_changed(GtkWidget *widget, gint zoom)
+{
+g_debug("New zoom: %d", zoom);
+return TRUE;
+}
+
static gboolean
map_pan_up(GtkWidget *widget, gpointer data)
{
dialog=GTK_DIALOG(gtk_dialog_new ());
gtk_window_set_title(GTK_WINDOW(dialog), "Map test");
+gtk_window_resize(GTK_WINDOW(dialog), 800, 600);
gtk_dialog_add_button (dialog, "Close", GTK_RESPONSE_CLOSE);
hbox=gtk_hbox_new(FALSE, 3);
gtk_map_set_tile_repository(map, rd);
gtk_box_pack_start(GTK_BOX(hbox), map, TRUE, TRUE, 0);
+g_signal_connect(G_OBJECT(map), "zoom-changed", G_CALLBACK(map_zoom_changed), NULL);
+
zoomer=gtk_vscale_new_with_range(0,17,1);
g_signal_connect(G_OBJECT(zoomer), "value-changed", G_CALLBACK(map_zoom), NULL);
gtk_box_pack_start(GTK_BOX(hbox), zoomer, FALSE, FALSE, 0);