From dea8d47b695b0095d3820e68be01dd45f19b547c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Sep 2012 14:24:34 -0700 Subject: 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 --- gtk-gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk-gui.c') diff --git a/gtk-gui.c b/gtk-gui.c index 2ad2cb60e..85366621f 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -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"); -- cgit v1.2.3-70-g09d2