diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-08-05 22:38:55 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 21:20:44 +0800 |
commit | bca9fa60a556e96dbad090afcfd407dab7a4532d (patch) | |
tree | 982d4f6932d95e41b9117e59646538eae3d64580 /src/empathy.c | |
parent | 665eea7db24e59db641803d5d778f0fbc58eebe7 (diff) | |
download | gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar.gz gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar.bz2 gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar.lz gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar.xz gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.tar.zst gsoc2013-empathy-bca9fa60a556e96dbad090afcfd407dab7a4532d.zip |
Add a parent window property to the assistant
Diffstat (limited to 'src/empathy.c')
-rw-r--r-- | src/empathy.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/empathy.c b/src/empathy.c index b80b64be7..acfdcb13e 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -63,6 +63,7 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include <libempathy-gtk/empathy-location-manager.h> +#include "empathy-account-assistant.h" #include "empathy-accounts-dialog.h" #include "empathy-main-window.h" #include "empathy-status-icon.h" @@ -532,12 +533,17 @@ account_manager_ready_cb (EmpathyAccountManager *manager, GParamSpec *spec, gpointer user_data) { + GtkWidget *assistant; + if (!empathy_account_manager_is_ready (manager)) return; if (empathy_account_manager_get_count (manager) == 0) - empathy_accounts_dialog_show (GTK_WINDOW (empathy_main_window_get ()), - NULL); + { + assistant = empathy_account_assistant_new ( + GTK_WINDOW (empathy_main_window_get ())); + gtk_window_present (GTK_WINDOW (assistant)); + } create_salut_account (); } |