diff options
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | composer/e-msg-composer-select-file.c | 11 |
2 files changed, 13 insertions, 4 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 4b8f010237..e33769832c 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,5 +1,11 @@ 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> + * e-msg-composer-select-file.c (confirm): If multiple-selection is + enabled but nothing is slected, fall back to using the filename in + the entry box as the "selected" file. + +2001-12-11 Jeffrey Stedfast <fejj@ximian.com> + * e-msg-composer-select-file.c (file_selection_info_destroy_notify): If the widget is non-NULL, then gtk_widget_destroy that bad boy... diff --git a/composer/e-msg-composer-select-file.c b/composer/e-msg-composer-select-file.c index 82733f9e5b..173664aace 100644 --- a/composer/e-msg-composer-select-file.c +++ b/composer/e-msg-composer-select-file.c @@ -45,15 +45,18 @@ static void confirm (FileSelectionInfo *info) { const char *filename; - GtkWidget *file_list; + GtkCList *file_list; char *path; GList *l; - if (info->multiple) { + file_list = GTK_CLIST (GTK_FILE_SELECTION (info->widget)->file_list); + + if (info->multiple && file_list->selection) { /* evil kludgy hack cuz the gtk file selector fucking sucks ass */ path = g_dirname (gtk_file_selection_get_filename (GTK_FILE_SELECTION (info->widget))); - file_list = GTK_FILE_SELECTION (info->widget)->file_list; - l = GTK_CLIST (file_list)->selection; + + l = file_list->selection; + while (l) { int row; |