]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Mark the FileChooserButton as UNABLE to select multiple files
authorDirk Hohndel <dirk@hohndel.org>
Wed, 5 Oct 2011 21:16:51 +0000 (14:16 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Wed, 5 Oct 2011 21:18:16 +0000 (14:18 -0700)
That's a gtk limitation.

So you have to import XML files one at a time. If this is too big of a
restriction then we need to redesign the import dialog.

Sgned-off-by: Dirk Hohndel <dirk@hohndel.org>
gtk-gui.c

index 151f0fa1798e67c5462ec4e17dcf661238d8c0a0..44c6d4142cb553ff7ad1c8ceacb3fc6804cafc0e 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -852,7 +852,7 @@ static GtkWidget *xml_file_selector(GtkWidget *vbox)
                GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                NULL);
-       gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), TRUE);
+       gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE);
 
        filter = gtk_file_filter_new();
        gtk_file_filter_add_pattern(filter, "*.xml");