diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-06-03 15:59:44 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-06-03 15:59:44 +0800 |
commit | 5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9 (patch) | |
tree | 872f06165319443aea970ea03e6f9e68aa7f930e | |
parent | 38bbb04d30bed88cf7af9e14c5183149fdb635c9 (diff) | |
download | gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar.gz gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar.bz2 gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar.lz gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar.xz gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.tar.zst gsoc2013-empathy-5eba91c37b0fdcd1eb5a905477cc98dc1c6d15d9.zip |
Only create the EmpathyAccountsDialog if required
https://bugzilla.gnome.org/show_bug.cgi?id=616616
-rw-r--r-- | src/empathy-accounts-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/empathy-accounts-common.c b/src/empathy-accounts-common.c index c6c18e834..a214f284a 100644 --- a/src/empathy-accounts-common.c +++ b/src/empathy-accounts-common.c @@ -101,9 +101,10 @@ do_show_accounts_ui (TpAccountManager *manager, TpAccount *account, GCallback window_destroyed_cb) { - GtkWidget *accounts_window; + static GtkWidget *accounts_window = NULL; - accounts_window = empathy_accounts_dialog_show (NULL, account); + if (accounts_window == NULL) + accounts_window = empathy_accounts_dialog_show (NULL, account); if (window_destroyed_cb) g_signal_connect (accounts_window, "destroy", window_destroyed_cb, NULL); |