aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-06 07:10:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-06 07:10:12 +0800
commitcdd8a5be80319480840cb62521ee157b41319950 (patch)
treeea5c22c2648bc5246a15fb33d9809e5991855b52 /mail/mail-config.c
parent016bfe6a735a8f5b2b31731795d4812cbdaf8f7a (diff)
downloadgsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar.gz
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar.bz2
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar.lz
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar.xz
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.tar.zst
gsoc2013-evolution-cdd8a5be80319480840cb62521ee157b41319950.zip
Don't make the account editor modal either.
2001-11-05 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Don't make the account editor modal either. * mail-accounts.c (mail_add): Use the new global account druid variable so that we can avoid having more than a single druid at a time. If a druid already exists, bring it to the top. (mail_edit): Same idea only for the account editor this time. (mail_editor_destroyed): Set the global editor to NULL. (mail_add_finished): Set the global druid to NULL. (mail_delete): Don't allow any deletes if an account editor is opened (we don't want to be able to delete the account we are editing...) (news_edit): Same thing for the news editor. (news_editor_destroyed): Set the news editor to NULL. (news_add): And again for the news add. * mail-account-gui.c (service_check_supported): Updated to pass a GtkWindow argument to mail_config_check_service(). * mail-config.c (mail_config_check_service): Now takes a GtkWindow argument so we can set our parent window. Also, don't make this dialog modal either. * mail-config-druid.c (construct): Don't make this druid modal. svn path=/trunk/; revision=14598
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index c2a0472530..bdda99103b 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -1948,7 +1948,7 @@ check_cancelled (GnomeDialog *dialog, int button, gpointer data)
* Return value: %TRUE on success or %FALSE on error.
**/
gboolean
-mail_config_check_service (const char *url, CamelProviderType type, GList **authtypes)
+mail_config_check_service (const char *url, CamelProviderType type, GList **authtypes, GtkWindow *window)
{
gboolean ret = FALSE;
struct _check_msg *m;
@@ -1967,13 +1967,14 @@ mail_config_check_service (const char *url, CamelProviderType type, GList **auth
dialog = gnome_dialog_new (_("Connecting to server..."),
GNOME_STOCK_BUTTON_CANCEL,
NULL);
+ gnome_dialog_set_parent (GNOME_DIALOG (dialog), window);
label = gtk_label_new (_("Connecting to server..."));
gtk_box_pack_start (GTK_BOX(GNOME_DIALOG (dialog)->vbox),
label, TRUE, TRUE, 10);
gnome_dialog_set_close (GNOME_DIALOG (dialog), FALSE);
gtk_signal_connect (GTK_OBJECT (dialog), "clicked",
GTK_SIGNAL_FUNC (check_cancelled), &id);
- gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ gtk_window_set_modal (GTK_WINDOW (dialog), FALSE);
gtk_widget_show_all (dialog);
mail_msg_wait(id);