diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-04-22 19:07:29 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2009-04-22 19:07:29 +0800 |
commit | 10a93b8c864c38dacc49a9f33b7ebf0cff549cfb (patch) | |
tree | 843eb32a21ee5ca0ca8598670ebc05ba25776586 /libempathy-gtk | |
parent | 03899c3c61a0e9a975caaaf2e6f30ccfeaeaeff5 (diff) | |
download | gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.gz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.bz2 gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.lz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.xz gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.tar.zst gsoc2013-empathy-10a93b8c864c38dacc49a9f33b7ebf0cff549cfb.zip |
Renamed empathy_contact_list_view_get_selected to empathy_contact_list_view_dup_selected and fixed leaks.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 8 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index df7149b50..ca224f526 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -474,7 +474,7 @@ contact_list_view_drag_data_get (GtkWidget *widget, gtk_tree_path_free (src_path); - contact = empathy_contact_list_view_get_selected (EMPATHY_CONTACT_LIST_VIEW (widget)); + contact = empathy_contact_list_view_dup_selected (EMPATHY_CONTACT_LIST_VIEW (widget)); if (!contact) { return; } @@ -1218,7 +1218,7 @@ empathy_contact_list_view_new (EmpathyContactListStore *store, } EmpathyContact * -empathy_contact_list_view_get_selected (EmpathyContactListView *view) +empathy_contact_list_view_dup_selected (EmpathyContactListView *view) { EmpathyContactListViewPriv *priv; GtkTreeSelection *selection; @@ -1384,7 +1384,7 @@ contact_list_view_remove_activate_cb (GtkMenuItem *menuitem, EmpathyContactListViewPriv *priv = GET_PRIV (view); EmpathyContact *contact; - contact = empathy_contact_list_view_get_selected (view); + contact = empathy_contact_list_view_dup_selected (view); if (contact) { gchar *text; @@ -1417,7 +1417,7 @@ empathy_contact_list_view_get_contact_menu (EmpathyContactListView *view) g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST_VIEW (view), NULL); - contact = empathy_contact_list_view_get_selected (view); + contact = empathy_contact_list_view_dup_selected (view); if (!contact) { return NULL; } diff --git a/libempathy-gtk/empathy-contact-list-view.h b/libempathy-gtk/empathy-contact-list-view.h index 82990d64f..bb6766c4a 100644 --- a/libempathy-gtk/empathy-contact-list-view.h +++ b/libempathy-gtk/empathy-contact-list-view.h @@ -70,7 +70,7 @@ GType empathy_contact_list_view_get_type (void) G EmpathyContactListView * empathy_contact_list_view_new (EmpathyContactListStore *store, EmpathyContactListFeatureFlags list_features, EmpathyContactFeatureFlags contact_features); -EmpathyContact * empathy_contact_list_view_get_selected (EmpathyContactListView *view); +EmpathyContact * empathy_contact_list_view_dup_selected (EmpathyContactListView *view); gchar * empathy_contact_list_view_get_selected_group (EmpathyContactListView *view); GtkWidget * empathy_contact_list_view_get_contact_menu (EmpathyContactListView *view); GtkWidget * empathy_contact_list_view_get_group_menu (EmpathyContactListView *view); |