aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 17:17:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-25 17:45:15 +0800
commit1d030ae9e63bbaac4fcd805dae61e22e3b1f5592 (patch)
tree37a59b20a0c4cdc19597dba78ae81fb4fa33f8ff
parenta687feb900220a231b63bce08f43743488dc6bbe (diff)
downloadgsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar.gz
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar.bz2
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar.lz
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar.xz
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.tar.zst
gsoc2013-empathy-1d030ae9e63bbaac4fcd805dae61e22e3b1f5592.zip
irc-network-chooser: use network accessors
-rw-r--r--libempathy-gtk/empathy-irc-network-chooser.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-irc-network-chooser.c b/libempathy-gtk/empathy-irc-network-chooser.c
index ce71465c7..6d41ae224 100644
--- a/libempathy-gtk/empathy-irc-network-chooser.c
+++ b/libempathy-gtk/empathy-irc-network-chooser.c
@@ -121,14 +121,13 @@ update_server_params (EmpathyIrcNetworkChooser *self)
{
EmpathyIrcNetworkChooserPriv *priv = GET_PRIV (self);
GSList *servers;
- gchar *charset;
+ const gchar *charset;
g_assert (priv->network != NULL);
- g_object_get (priv->network, "charset", &charset, NULL);
+ charset = empathy_irc_network_get_charset (priv->network);
DEBUG ("Setting charset to %s", charset);
empathy_account_settings_set_string (priv->settings, "charset", charset);
- g_free (charset);
servers = empathy_irc_network_get_servers (priv->network);
if (g_slist_length (servers) > 0)
@@ -168,13 +167,11 @@ static void
set_label (EmpathyIrcNetworkChooser *self)
{
EmpathyIrcNetworkChooserPriv *priv = GET_PRIV (self);
- gchar *name;
g_assert (priv->network != NULL);
- g_object_get (priv->network, "name", &name, NULL);
- gtk_button_set_label (GTK_BUTTON (self), name);
- g_free (name);
+ gtk_button_set_label (GTK_BUTTON (self),
+ empathy_irc_network_get_name (priv->network));
}
static void