return TRUE;
}
+static gboolean
+map_rotate(GtkWidget *widget, gpointer data)
+{
+gtk_map_rotate(map, gtk_range_get_value(widget));
+return TRUE;
+}
+
static void
map_zoom_changed(GtkWidget *widget, gint zoom, gpointer data)
{
{
GtkDialog *dialog;
GtkWidget *hbox, *zoomer, *btn_left, *btn_right, *btn_up, *btn_down, *vbox;
+GtkWidget *rotate;
RepoData *rd;
gtk_init (&argc, &args);
zoomer=gtk_vscale_new_with_range(0,17,1);
gtk_box_pack_start(GTK_BOX(hbox), zoomer, FALSE, FALSE, 0);
+rotate=gtk_hscale_new_with_range(0,360,1);
+
btn_left=gtk_button_new_with_label("L");
btn_right=gtk_button_new_with_label("R");
btn_up=gtk_button_new_with_label("U");
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(dialog->vbox), hbox, TRUE, TRUE, 0);
+gtk_box_pack_start(GTK_BOX(dialog->vbox), rotate, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(zoomer), "value-changed", G_CALLBACK(map_zoom), NULL);
+g_signal_connect(G_OBJECT(rotate), "value-changed", G_CALLBACK(map_rotate), NULL);
g_signal_connect(G_OBJECT(map), "zoom-changed", G_CALLBACK(map_zoom_changed), zoomer);
g_signal_connect(G_OBJECT(btn_up), "clicked", G_CALLBACK(map_pan_up), NULL);