Only cancel the selection dialog if it is currently in use, otherwise
2001-12-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (composer_hide_cb): Only cancel the selection dialog if it is currently in use, otherwise we'll get an extra gtk_main_quit and the mailer will exit :-( svn path=/trunk/; revision=15207
This commit is contained in:
committed by
Jeffrey Stedfast
parent
630429ee20
commit
acc9974f8b
@ -1,3 +1,9 @@
|
||||
2001-12-21 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-msg-composer-select-file.c (composer_hide_cb): Only cancel the
|
||||
selection dialog if it is currently in use, otherwise we'll get an
|
||||
extra gtk_main_quit and the mailer will exit :-(
|
||||
|
||||
2001-12-17 Jeffrey Stedfast <fejj@ximian.com>
|
||||
|
||||
* e-msg-composer.c (read_file_content): Don't block forever if we
|
||||
|
||||
@ -158,7 +158,7 @@ e_msg_composer_attachment_new (const char *file_name,
|
||||
CamelDataWrapper *wrapper;
|
||||
CamelStream *stream;
|
||||
struct stat statbuf;
|
||||
gchar *mime_type;
|
||||
char *mime_type;
|
||||
char *filename;
|
||||
|
||||
g_return_val_if_fail (file_name != NULL, NULL);
|
||||
|
||||
@ -131,7 +131,8 @@ composer_hide_cb (GtkWidget *widget, gpointer user_data)
|
||||
FileSelectionInfo *info;
|
||||
|
||||
info = (FileSelectionInfo *) user_data;
|
||||
cancel (info);
|
||||
if (GTK_WIDGET_VISIBLE (info->widget))
|
||||
cancel (info);
|
||||
}
|
||||
|
||||
/* Setup. */
|
||||
|
||||
Reference in New Issue
Block a user