aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-22 19:01:37 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-22 19:01:37 +0800
commit03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5 (patch)
tree7efadd07e27ae921287de2d4fd8611aefdfd27fd /libempathy-gtk
parente444ee9b051168bbd591b9eadb03ae5f735e346f (diff)
downloadgsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.gz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.bz2
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.lz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.xz
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.tar.zst
gsoc2013-empathy-03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5.zip
Renamed empathy_account_chooser_get_account to empathy_account_chooser_dup_account and fixed leaks.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c4
-rw-r--r--libempathy-gtk/empathy-account-chooser.h2
-rw-r--r--libempathy-gtk/empathy-log-window.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index ea3d6e513..859ba3353 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -220,7 +220,7 @@ empathy_account_chooser_new (void)
}
McAccount *
-empathy_account_chooser_get_account (EmpathyAccountChooser *chooser)
+empathy_account_chooser_dup_account (EmpathyAccountChooser *chooser)
{
EmpathyAccountChooserPriv *priv;
McAccount *account;
@@ -252,7 +252,7 @@ empathy_account_chooser_get_connection (EmpathyAccountChooser *chooser)
priv = GET_PRIV (chooser);
- account = empathy_account_chooser_get_account (chooser);
+ account = empathy_account_chooser_dup_account (chooser);
connection = empathy_account_manager_get_connection (priv->manager, account);
g_object_unref (account);
diff --git a/libempathy-gtk/empathy-account-chooser.h b/libempathy-gtk/empathy-account-chooser.h
index 4dfdc632e..580c21695 100644
--- a/libempathy-gtk/empathy-account-chooser.h
+++ b/libempathy-gtk/empathy-account-chooser.h
@@ -56,7 +56,7 @@ struct _EmpathyAccountChooserClass {
GType empathy_account_chooser_get_type (void) G_GNUC_CONST;
GtkWidget * empathy_account_chooser_new (void);
-McAccount * empathy_account_chooser_get_account (EmpathyAccountChooser *chooser);
+McAccount * empathy_account_chooser_dup_account (EmpathyAccountChooser *chooser);
TpConnection * empathy_account_chooser_get_connection (EmpathyAccountChooser *chooser);
gboolean empathy_account_chooser_set_account (EmpathyAccountChooser *chooser,
McAccount *account);
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 2cec17783..13d9bcbd3 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -618,7 +618,7 @@ log_window_chats_populate (EmpathyLogWindow *window)
GtkTreeIter iter;
account_chooser = EMPATHY_ACCOUNT_CHOOSER (window->account_chooser_chats);
- account = empathy_account_chooser_get_account (account_chooser);
+ account = empathy_account_chooser_dup_account (account_chooser);
view = GTK_TREE_VIEW (window->treeview_chats);
model = gtk_tree_view_get_model (view);