aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-10 14:10:35 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-10 14:10:35 +0800
commitf02772e536c4bdda07a50bd09f38c92b7c8feebf (patch)
treeb797a37676b137cb6cf354630e27d2d99d3b64d7 /plugins
parent249152e57024aa04d383565d0d14cbb39c5df7db (diff)
downloadgsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar.gz
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar.bz2
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar.lz
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar.xz
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.tar.zst
gsoc2013-evolution-f02772e536c4bdda07a50bd09f38c92b7c8feebf.zip
2007-08-10 mcrha Fix for bug #327977
svn path=/trunk/; revision=33972
Diffstat (limited to 'plugins')
-rw-r--r--plugins/exchange-operations/ChangeLog7
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c3
-rw-r--r--plugins/groupwise-features/ChangeLog13
-rw-r--r--plugins/groupwise-features/proxy.c8
-rw-r--r--plugins/groupwise-features/send-options.c6
5 files changed, 29 insertions, 8 deletions
diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog
index 99ba8b5e97..46acbd6f45 100644
--- a/plugins/exchange-operations/ChangeLog
+++ b/plugins/exchange-operations/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-10 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #327977
+
+ * exchange-account-setup.c: (owa_authenticate_user):
+ Pass parent window to call of e2k_validate_user.
+
2007-07-31 Veerapuram Varadhan <vvaradhan@novell.com>
* exchange-delegates-user.c: (exchange_delegates_user_edit):
diff --git a/plugins/exchange-operations/exchange-account-setup.c b/plugins/exchange-operations/exchange-account-setup.c
index 81b2dfdece..28a9445bfc 100644
--- a/plugins/exchange-operations/exchange-account-setup.c
+++ b/plugins/exchange-operations/exchange-account-setup.c
@@ -468,7 +468,8 @@ owa_authenticate_user(GtkWidget *button, EConfig *config)
key [strlen(key) -1] = 0;
valid = e2k_validate_user (owa_url, key, &url->user, exchange_params,
- &remember_password, &result);
+ &remember_password, &result,
+ GTK_WINDOW (gtk_widget_get_toplevel (button)));
g_free (key);
if (!valid && result != E2K_AUTOCONFIG_CANCELLED)
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog
index 2bf1e3f71e..05e5546bc2 100644
--- a/plugins/groupwise-features/ChangeLog
+++ b/plugins/groupwise-features/ChangeLog
@@ -1,3 +1,16 @@
+2007-08-10 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #327977
+
+ * proxy.c: (proxy_get_cnc): Added parent_window parameter
+ and uses it in call of e_passwords_ask_password.
+ * proxy.c: (proxy_commit), (proxy_page_changed_cb):
+ Calls proxy_get_cnc, passing in parent window handle.
+ * send-options.c: (get_cnc): Added parent_window parameter
+ and uses it in call of e_passwords_ask_password.
+ * send-options.c: (e_sendoptions_clicked_cb):
+ Calls get_cnc, passing in parent window handle.
+
2007-08-03 Hiroyuki Ikezoe <poincare@ikezoe.net>
** Fix for bug #462010
diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c
index 308d59653c..03563e3ce7 100644
--- a/plugins/groupwise-features/proxy.c
+++ b/plugins/groupwise-features/proxy.c
@@ -470,7 +470,7 @@ proxy_dialog_initialize_widgets (EAccount *account)
}
static EGwConnection *
-proxy_get_cnc (EAccount *account)
+proxy_get_cnc (EAccount *account, GtkWindow *parent_window)
{
EGwConnection *cnc;
char *uri, *failed_auth, *key, *prompt, *password = NULL;
@@ -506,7 +506,7 @@ proxy_get_cnc (EAccount *account)
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);
@@ -565,7 +565,7 @@ proxy_commit (GtkWidget *button, EConfigHookItemFactoryData *data)
if ( !((aclInstance->flags & E_GW_PROXY_NEW) && (aclInstance->flags & E_GW_PROXY_DELETED))) {
if ( !E_IS_GW_CONNECTION(prd->cnc)) /* Add check in case the connection request fails*/
- prd->cnc = proxy_get_cnc (account);
+ prd->cnc = proxy_get_cnc (account, GTK_WINDOW (gtk_widget_get_toplevel (button)));
if (aclInstance->flags & E_GW_PROXY_NEW )
e_gw_connection_add_proxy (prd->cnc, aclInstance);
@@ -752,7 +752,7 @@ proxy_page_changed_cb (GtkNotebook *notebook, GtkNotebookPage *page, int num, EA
if ((pg_num == num) && account->enabled) {
if (!prd->cnc)
- prd->cnc = proxy_get_cnc(account);
+ prd->cnc = proxy_get_cnc (account, GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (notebook))));
priv = prd->priv;
if (e_gw_connection_get_proxy_access_list(prd->cnc, &priv->proxy_list)!= E_GW_CONNECTION_STATUS_OK)
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");