+
+ gtk_about_dialog_set_url_hook (about_url_hook, NULL, NULL);
+ gtk_about_dialog_set_email_hook (about_email_hook, NULL, NULL);
+ gtk_show_about_dialog (parent,
+ /* TODO do not set program-name and correctly set info for g_get_application_name */
+ "program-name", program_name,
+ "version", version,
+ "website", website,
+ "comments", comments,
+ "copyright", copyright,
+ "license", license,
+ "wrap-license", TRUE,
+ /* logo automatically retrieved via gtk_window_get_default_icon_list */
+ "authors", AUTHORS,
+ NULL);
+}
+
+gboolean a_dialog_map_n_zoom(GtkWindow *parent, gchar *mapnames[], gint default_map, gchar *zoom_list[], gint default_zoom, gint *selected_map, gint *selected_zoom)
+{
+ gchar **s;
+
+ GtkWidget *dialog = gtk_dialog_new_with_buttons ( _("Download along track"), parent, 0, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL );
+
+ GtkWidget *map_label = gtk_label_new(_("Map type:"));
+ GtkComboBox *map_combo = GTK_COMBO_BOX(gtk_combo_box_new_text());
+ for (s = mapnames; *s; s++)
+ gtk_combo_box_append_text(map_combo, *s);
+ gtk_combo_box_set_active (map_combo, default_map);
+ GtkWidget *zoom_label = gtk_label_new(_("Zoom level:"));
+ GtkComboBox *zoom_combo = GTK_COMBO_BOX(gtk_combo_box_new_text());
+ for (s = zoom_list; *s; s++)
+ gtk_combo_box_append_text(zoom_combo, *s);
+ gtk_combo_box_set_active (zoom_combo, default_zoom);
+
+ GtkTable *box = GTK_TABLE(gtk_table_new(2, 2, FALSE));
+ gtk_table_attach_defaults(box, GTK_WIDGET(map_label), 0, 1, 0, 1);
+ gtk_table_attach_defaults(box, GTK_WIDGET(map_combo), 1, 2, 0, 1);
+ gtk_table_attach_defaults(box, GTK_WIDGET(zoom_label), 0, 1, 1, 2);
+ gtk_table_attach_defaults(box, GTK_WIDGET(zoom_combo), 1, 2, 1, 2);
+
+ gtk_box_pack_start ( GTK_BOX(GTK_DIALOG(dialog)->vbox), GTK_WIDGET(box), FALSE, FALSE, 5 );
+
+ gtk_widget_show_all ( dialog );
+ if ( gtk_dialog_run ( GTK_DIALOG(dialog) ) != GTK_RESPONSE_ACCEPT ) {
+ gtk_widget_destroy(dialog);
+ return FALSE;