apply patch that allows accepting a file name typed in the multi file selector (submi...
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 23 Dec 2001 19:28:55 +0000 (19:28 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 23 Dec 2001 19:28:55 +0000 (19:28 +0000)
AUTHORS
ChangeLog.claws
configure.in
src/filesel.c

diff --git a/AUTHORS b/AUTHORS
index d4bfecc..28cc516 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -102,3 +102,4 @@ contributors (beside the above; based on Changelog)
        Thomas Link
        Martin Pool
        Fredrik Olofsen
+       Gustavo Noronha Silva
index 79baf0c..07d2061 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-23 [alfons]    0.6.6claws14
+
+       * src/filesel.c
+               accept file name typed in entry in multi file
+               selector (patch submitted by Gustavo Noronha Silva 
+               <kov@debian.org>)
+
 2001-12-23 [alfons]    0.6.6claws13
 
        * src/prefs_filter.c
index aeebf28..32b8bc6 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws13
+EXTRA_VERSION=claws14
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 9a4fe65..85b0799 100644 (file)
@@ -139,8 +139,19 @@ GList *filesel_select_multiple_files(const gchar *title, const gchar *file)
 
        gtk_main();
 
-       if (filesel_ack)
-               list = filesel_get_multiple_filenames();                
+       if (filesel_ack) {
+               GtkWidget *entry;
+               gchar *fname = NULL;
+
+               list = filesel_get_multiple_filenames();
+
+               if (!list) {
+                       entry = GTK_FILE_SELECTION(filesel)->selection_entry;
+                       fname = gtk_entry_get_text (GTK_ENTRY(entry));
+                       if (fname && fname[0] != '\0')
+                               list = g_list_append (list, g_strdup(fname));
+               }
+       }
 
        manage_window_focus_out(filesel, NULL, NULL);
        gtk_widget_destroy(filesel);