diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-15 14:24:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-17 21:03:29 -0400 |
commit | dea8d47b695b0095d3820e68be01dd45f19b547c (patch) | |
tree | 01defb1a9f9ebd804d6d45fcbf65cd0b29680f4d | |
parent | b2727ecfda729164a3d18c73787ccc67bd94c1aa (diff) | |
download | subsurface-dea8d47b695b0095d3820e68be01dd45f19b547c.tar.gz |
The Open menu entry should open just one file
The single file that is our new data file (and the file that we'll change
if it was modified).
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | gtk-gui.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -274,7 +274,8 @@ static void file_open(GtkWidget *w, gpointer data) GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); - gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), TRUE); + /* when opening the data file we should allow only one file to be chosen */ + gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), FALSE); filter = gtk_file_filter_new(); gtk_file_filter_add_pattern(filter, "*.xml"); |