aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-accounts-dialog.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2007-05-09 19:48:33 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-05-09 19:48:33 +0800
commitbeb301da43c57e64e781b7f5c69b2bc667f46b1d (patch)
tree32e373f5960cf673297b6162ccc039c25007e9aa /libempathy-gtk/gossip-accounts-dialog.c
parent6c4424425443b85e2bc14ee430fb8ec78521b074 (diff)
downloadgsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.gz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.bz2
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.lz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.xz
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.tar.zst
gsoc2013-empathy-beb301da43c57e64e781b7f5c69b2bc667f46b1d.zip
[darcs-to-svn @ sync with Gossip SVN 2323]
svn path=/trunk/; revision=38
Diffstat (limited to 'libempathy-gtk/gossip-accounts-dialog.c')
-rw-r--r--libempathy-gtk/gossip-accounts-dialog.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/libempathy-gtk/gossip-accounts-dialog.c b/libempathy-gtk/gossip-accounts-dialog.c
index 449577aec..5155ced12 100644
--- a/libempathy-gtk/gossip-accounts-dialog.c
+++ b/libempathy-gtk/gossip-accounts-dialog.c
@@ -186,12 +186,12 @@ accounts_dialog_setup (GossipAccountsDialog *dialog)
status = mission_control_get_connection_status (dialog->mc, account, NULL);
- gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter,
- COL_NAME, name,
- COL_STATUS, status,
- COL_ACCOUNT_POINTER, account,
- -1);
+ gtk_list_store_insert_with_values (store, &iter,
+ -1,
+ COL_NAME, name,
+ COL_STATUS, status,
+ COL_ACCOUNT_POINTER, account,
+ -1);
accounts_dialog_status_changed_cb (dialog->mc,
status,
@@ -591,12 +591,12 @@ accounts_dialog_add_account (GossipAccountsDialog *dialog,
gossip_debug (DEBUG_DOMAIN, "Adding new account: %s", name);
- gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter,
- COL_NAME, name,
- COL_STATUS, status,
- COL_ACCOUNT_POINTER, account,
- -1);
+ gtk_list_store_insert_with_values (store, &iter,
+ -1,
+ COL_NAME, name,
+ COL_STATUS, status,
+ COL_ACCOUNT_POINTER, account,
+ -1);
}
static void
@@ -737,6 +737,8 @@ accounts_dialog_status_changed_cb (MissionControl *mc,
g_source_remove (dialog->connecting_id);
dialog->connecting_id = 0;
}
+
+ gtk_widget_show (dialog->window);
}
static void
@@ -1019,11 +1021,10 @@ gossip_accounts_dialog_show (void)
accounts_dialog_model_setup (dialog);
accounts_dialog_setup (dialog);
+ accounts_dialog_model_select_first (dialog);
gtk_widget_show (dialog->window);
- accounts_dialog_model_select_first (dialog);
-
return dialog->window;
}