From f02772e536c4bdda07a50bd09f38c92b7c8feebf Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 10 Aug 2007 06:10:35 +0000 Subject: 2007-08-10 mcrha Fix for bug #327977 svn path=/trunk/; revision=33972 --- plugins/groupwise-features/send-options.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/groupwise-features/send-options.c') diff --git a/plugins/groupwise-features/send-options.c b/plugins/groupwise-features/send-options.c index 0e46c91219..438e48e15f 100644 --- a/plugins/groupwise-features/send-options.c +++ b/plugins/groupwise-features/send-options.c @@ -50,7 +50,7 @@ void send_options_changed (EPlugin *epl, EConfigHookItemFactoryData *data); void send_options_abort (EPlugin *epl, EConfigHookItemFactoryData *data); static EGwConnection * -get_cnc () +get_cnc (GtkWindow *parent_window) { EGwConnection *cnc; char *uri, *failed_auth, *key, *prompt, *password = NULL; @@ -86,7 +86,7 @@ get_cnc () password = e_passwords_get_password ("Groupwise", key); if (!password) password = e_passwords_ask_password (prompt, "Groupwise", key, prompt, - E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET, &remember, NULL); + E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET, &remember, parent_window); g_free (prompt); cnc = e_gw_connection_new (uri, url->user, password); @@ -168,7 +168,7 @@ e_sendoptions_clicked_cb (GtkWidget *button, gpointer data) sod = e_sendoptions_dialog_new (); e_sendoptions_set_global (sod, TRUE); if (!n_cnc) - n_cnc = get_cnc (); + n_cnc = get_cnc (GTK_WINDOW (gtk_widget_get_toplevel (button))); if (!n_cnc) { g_warning ("Send Options: Could not get the connection to the server \n"); -- cgit v1.2.3