aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-account-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-05 21:00:44 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-06 17:28:44 +0800
commit505305a0bc8f02ca770014682f0794b8c9353aef (patch)
tree84012aec08661542aacbe6ad0ebe7430a8b61b70 /libempathy-gtk/empathy-account-widget.c
parentc92e84c8b183d3fd5b18427d58a827b4bb865435 (diff)
downloadgsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar.gz
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar.bz2
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar.lz
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar.xz
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.tar.zst
gsoc2013-empathy-505305a0bc8f02ca770014682f0794b8c9353aef.zip
account-settings: use TpProtocol's API to get TpConnectionManagerParam
https://bugzilla.gnome.org/show_bug.cgi?id=677465
Diffstat (limited to 'libempathy-gtk/empathy-account-widget.c')
-rw-r--r--libempathy-gtk/empathy-account-widget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index 1082a9eea..d5a925b75 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -728,13 +728,14 @@ accounts_widget_generic_setup (EmpathyAccountWidget *self,
GtkWidget *grid_common_settings,
GtkWidget *grid_advanced_settings)
{
- TpConnectionManagerParam *params, *param;
+ GList *params, *l;
guint row_common = 0, row_advanced = 0;
- params = empathy_account_settings_get_tp_params (self->priv->settings);
+ params = empathy_account_settings_dup_tp_params (self->priv->settings);
- for (param = params; param != NULL && param->name != NULL; param++)
+ for (l = params; l != NULL; l = g_list_next (l))
{
+ TpConnectionManagerParam *param = l->data;
GtkWidget *grid_settings;
guint row;
GtkWidget *widget = NULL;
@@ -848,6 +849,8 @@ accounts_widget_generic_setup (EmpathyAccountWidget *self,
g_free (param_name_formatted);
}
+
+ g_list_free_full (params, (GDestroyNotify) tp_connection_manager_param_free);
}
static void