aboutsummaryrefslogtreecommitdiffstats
path: root/contact-list/empathy-contact-list-main.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-02 14:13:46 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-02 14:13:46 +0800
commit8a9cd5deb874be70481ac0193cf7c28933f4b9ce (patch)
treea588e5dc051bae3c73ce532f08d2468226e26523 /contact-list/empathy-contact-list-main.c
parent8e7b3f45c92b2c7523c824b247308cf74e30b80b (diff)
downloadgsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar.gz
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar.bz2
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar.lz
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar.xz
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.tar.zst
gsoc2013-empathy-8a9cd5deb874be70481ac0193cf7c28933f4b9ce.zip
[darcs-to-svn @ contact list now displays accounts dialog]
svn path=/trunk/; revision=21
Diffstat (limited to 'contact-list/empathy-contact-list-main.c')
-rw-r--r--contact-list/empathy-contact-list-main.c14
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 ();