From 505305a0bc8f02ca770014682f0794b8c9353aef Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 5 Jun 2012 15:00:44 +0200 Subject: account-settings: use TpProtocol's API to get TpConnectionManagerParam https://bugzilla.gnome.org/show_bug.cgi?id=677465 --- libempathy-gtk/empathy-account-widget.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-account-widget.c') 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 -- cgit v1.2.3