aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-12-12 05:55:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-12-12 05:55:55 +0800
commit17957b82973240ce944196c993d042b3ba568076 (patch)
tree2cac4616d2b796525a1b5eb08b879012be42ce9b /composer
parent84cc28032ce8c3fe28901c48b7e52212ab48ada3 (diff)
downloadgsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar.gz
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar.bz2
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar.lz
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar.xz
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.tar.zst
gsoc2013-evolution-17957b82973240ce944196c993d042b3ba568076.zip
If multiple-selection is enabled but nothing is slected, fall back to
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. svn path=/trunk/; revision=14994
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog6
-rw-r--r--composer/e-msg-composer-select-file.c11
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;