aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-07-09 02:34:35 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:36 +0800
commitfef2dec3ea6216921b297c7edbb3665e6c222ef5 (patch)
treeb722d3b46c7a5d4c9c06130aaafcd6910e6c01e8 /libempathy-gtk
parent571d3f81c92099c569c061f38c1ac3b923c04637 (diff)
downloadgsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.gz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.bz2
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.lz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.xz
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.tar.zst
gsoc2013-empathy-fef2dec3ea6216921b297c7edbb3665e6c222ef5.zip
Add 'dup' to the names of empathy_contact_from_folks_individual() and folks_individual_from_empathy_contact() to make it clear that the return value has been referenced.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c14
-rw-r--r--libempathy-gtk/empathy-individual-dialogs.c2
-rw-r--r--libempathy-gtk/empathy-individual-menu.c34
-rw-r--r--libempathy-gtk/empathy-individual-store.c4
-rw-r--r--libempathy-gtk/empathy-individual-view.c6
5 files changed, 30 insertions, 30 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 440c90482..92f6c4b58 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -579,7 +579,7 @@ contact_widget_cell_toggled (GtkCellRendererToggle *cell,
if (group != NULL)
{
- FolksIndividual *individual = folks_individual_from_empathy_contact (
+ FolksIndividual *individual = folks_individual_dup_from_empathy_contact (
information->contact);
if (individual != NULL)
@@ -809,7 +809,7 @@ contact_widget_button_group_clicked_cb (GtkButton *button,
COL_ENABLED, TRUE,
-1);
- individual = folks_individual_from_empathy_contact (information->contact);
+ individual = folks_individual_dup_from_empathy_contact (information->contact);
if (individual != NULL)
{
@@ -1337,8 +1337,8 @@ contact_widget_entry_alias_focus_event_cb (GtkEditable *editable,
}
else
{
- FolksIndividual *individual = folks_individual_from_empathy_contact (
- information->contact);
+ FolksIndividual *individual =
+ folks_individual_dup_from_empathy_contact (information->contact);
if (individual != NULL)
{
@@ -1535,8 +1535,8 @@ contact_widget_contact_update (EmpathyContactWidget *information)
if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_FAVOURITE)
{
- FolksIndividual *individual = folks_individual_from_empathy_contact (
- information->contact);
+ FolksIndividual *individual =
+ folks_individual_dup_from_empathy_contact (information->contact);
if (individual != NULL)
{
@@ -1672,7 +1672,7 @@ static void
favourite_toggled_cb (GtkToggleButton *button,
EmpathyContactWidget *information)
{
- FolksIndividual *individual = folks_individual_from_empathy_contact (
+ FolksIndividual *individual = folks_individual_dup_from_empathy_contact (
information->contact);
if (individual != NULL)
diff --git a/libempathy-gtk/empathy-individual-dialogs.c b/libempathy-gtk/empathy-individual-dialogs.c
index a905c1969..b9a843c57 100644
--- a/libempathy-gtk/empathy-individual-dialogs.c
+++ b/libempathy-gtk/empathy-individual-dialogs.c
@@ -125,7 +125,7 @@ empathy_new_individual_dialog_show_with_individual (GtkWindow *parent,
/* Contact info widget */
if (FOLKS_IS_INDIVIDUAL (individual))
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
contact_widget = empathy_contact_widget_new (contact,
EMPATHY_CONTACT_WIDGET_EDIT_ALIAS |
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c
index ceb95db1d..380d0ac57 100644
--- a/libempathy-gtk/empathy-individual-menu.c
+++ b/libempathy-gtk/empathy-individual-menu.c
@@ -191,7 +191,7 @@ empathy_individual_add_menu_item_new (FolksIndividual *individual)
}
manager = empathy_individual_manager_dup_singleton ();
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
connection = empathy_contact_get_connection (contact);
flags = empathy_individual_manager_get_flags_for_connection (manager,
@@ -244,7 +244,7 @@ empathy_individual_chat_menu_item_activated (GtkMenuItem *item,
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -283,7 +283,7 @@ empathy_individual_audio_call_menu_item_activated (GtkMenuItem *item,
EmpathyContact *contact;
EmpathyCallFactory *factory;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -302,7 +302,7 @@ empathy_individual_audio_call_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -328,7 +328,7 @@ empathy_individual_video_call_menu_item_activated (GtkMenuItem *item,
EmpathyContact *contact;
EmpathyCallFactory *factory;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -347,7 +347,7 @@ empathy_individual_video_call_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -372,7 +372,7 @@ individual_log_menu_item_activate_cb (FolksIndividual *individual)
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -391,7 +391,7 @@ empathy_individual_log_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -420,7 +420,7 @@ individual_file_transfer_menu_item_activate_cb (FolksIndividual *individual)
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -438,7 +438,7 @@ empathy_individual_file_transfer_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -462,7 +462,7 @@ individual_share_my_desktop_menu_item_activate_cb (FolksIndividual *individual)
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -481,7 +481,7 @@ empathy_individual_share_my_desktop_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -530,7 +530,7 @@ individual_info_menu_item_activate_cb (FolksIndividual *individual)
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
empathy_contact_information_dialog_show (contact, NULL);
}
@@ -562,7 +562,7 @@ individual_edit_menu_item_activate_cb (FolksIndividual *individual)
{
EmpathyContact *contact;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
empathy_contact_edit_dialog_show (contact, NULL);
}
@@ -577,7 +577,7 @@ empathy_individual_edit_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
@@ -653,7 +653,7 @@ room_sub_menu_activate_cb (GtkWidget *item,
return;
}
- contact = empathy_contact_from_folks_individual (data->individual);
+ contact = empathy_contact_dup_from_folks_individual (data->individual);
g_return_if_fail (EMPATHY_IS_CONTACT (contact));
@@ -693,7 +693,7 @@ empathy_individual_invite_menu_item_new (FolksIndividual *individual)
g_return_val_if_fail (FOLKS_IS_INDIVIDUAL (individual), NULL);
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index e97b94e88..2153d1ab8 100644
--- a/libempathy-gtk/empathy-individual-store.c
+++ b/libempathy-gtk/empathy-individual-store.c
@@ -371,7 +371,7 @@ individual_store_add_individual (EmpathyIndividualStore *self,
}
manager = empathy_individual_manager_dup_singleton ();
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
connection = empathy_contact_get_connection (contact);
flags = empathy_individual_manager_get_flags_for_connection (manager,
connection);
@@ -1799,7 +1799,7 @@ individual_store_get_individual_status_icon_with_icon_name (
show_protocols_here = priv->show_protocols && (contact_count == 1);
if (show_protocols_here)
{
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
protocol_name = empathy_protocol_name_for_contact (contact);
icon_name = g_strdup_printf ("%s-%s", status_icon_name, protocol_name);
}
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index bab8b1dfd..a8b294c2b 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -296,7 +296,7 @@ individual_view_query_tooltip_cb (EmpathyIndividualView *view,
goto OUT;
}
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
g_object_unref (individual);
if (contact == NULL)
@@ -484,7 +484,7 @@ individual_view_file_drag_received (GtkWidget *view,
return FALSE;
}
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
empathy_send_file_from_uri_list (contact, sel_data);
g_object_unref (individual);
@@ -897,7 +897,7 @@ individual_view_row_activated (GtkTreeView *view,
if (!individual)
return;
- contact = empathy_contact_from_folks_individual (individual);
+ contact = empathy_contact_dup_from_folks_individual (individual);
if (contact != NULL)
{