diff options
Diffstat (limited to 'contact-list/empathy-contact-list-main.c')
-rw-r--r-- | contact-list/empathy-contact-list-main.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contact-list/empathy-contact-list-main.c b/contact-list/empathy-contact-list-main.c index dfa7695e3..b43b1c20a 100644 --- a/contact-list/empathy-contact-list-main.c +++ b/contact-list/empathy-contact-list-main.c @@ -27,9 +27,12 @@ #include <glib.h> #include <gtk/gtk.h> +#include <libmissioncontrol/mc-account.h> + #include <libempathy/empathy-session.h> #include <libempathy-gtk/empathy-main-window.h> #include <libempathy-gtk/gossip-stock.h> +#include <libempathy-gtk/gossip-accounts-dialog.h> static void destroy_cb (GtkWidget *window, @@ -44,17 +47,24 @@ int main (int argc, char *argv[]) { GtkWidget *window; + GList *accounts; gtk_init (&argc, &argv); - window = empathy_main_window_new (); + window = empathy_main_window_show (); gossip_stock_init (window); g_signal_connect (window, "destroy", G_CALLBACK (destroy_cb), NULL); - gtk_widget_show (window); + /* Show the accounts dialog if there is no enabled accounts */ + accounts = mc_accounts_list_by_enabled (TRUE); + if (accounts) { + mc_accounts_list_free (accounts); + } else { + gossip_accounts_dialog_show (); + } gtk_main (); |