aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-13 04:05:35 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-01-15 22:43:40 +0800
commitd545bdb78cc302db6f3b4bd82dc3570fd5561949 (patch)
tree039d870fe122981e706c58ec20effe9e756c65b4 /addressbook/gui/widgets
parent720b43ba4d86bbf2a2f4f4f6d3624bf87bd1cf69 (diff)
downloadgsoc2013-evolution-d545bdb78cc302db6f3b4bd82dc3570fd5561949.tar.gz
gsoc2013-evolution-d545bdb78cc302db6f3b4bd82dc3570fd5561949.tar.zst
gsoc2013-evolution-d545bdb78cc302db6f3b4bd82dc3570fd5561949.zip
Avoid deprecated libedataserver APIs.
I forgot to include this in 3.7.4, but no matter.
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c16
-rw-r--r--addressbook/gui/widgets/e-contact-map-window.c2
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c2
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c4
4 files changed, 14 insertions, 10 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 53402a9e6e..14293f5344 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -280,7 +280,7 @@ table_drag_data_get (ETable *table,
break;
}
- e_client_util_free_object_slist (contact_list);
+ g_slist_free_full (contact_list, (GDestroyNotify) g_object_unref);
}
static void
@@ -689,7 +689,7 @@ addressbook_view_copy_clipboard (ESelectable *selectable)
e_clipboard_set_directory (clipboard, string, -1);
g_free (string);
- e_client_util_free_object_slist (contact_list);
+ g_slist_free_full (contact_list, (GDestroyNotify) g_object_unref);
}
static void
@@ -724,7 +724,7 @@ addressbook_view_paste_clipboard (ESelectable *selectable)
registry, book_client, contact, NULL, NULL);
}
- e_client_util_free_object_slist (contact_list);
+ g_slist_free_full (contact_list, (GDestroyNotify) g_object_unref);
}
static void
@@ -1198,7 +1198,9 @@ e_addressbook_view_print (EAddressbookView *view,
contact_list = e_addressbook_view_get_selected (view);
e_contact_print (NULL, NULL, contact_list, action);
- e_client_util_free_object_slist (contact_list);
+ g_slist_free_full (
+ contact_list,
+ (GDestroyNotify) g_object_unref);
/* Print the latest query results. */
} else if (GAL_IS_VIEW_MINICARD (gal_view)) {
@@ -1395,7 +1397,7 @@ e_addressbook_view_delete_selection (EAddressbookView *view,
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view))),
plural, is_list, name)) {
g_free (name);
- e_client_util_free_object_slist (list);
+ g_slist_free_full (list, (GDestroyNotify) g_object_unref);
return;
}
@@ -1454,7 +1456,7 @@ e_addressbook_view_delete_selection (EAddressbookView *view,
row = e_table_view_to_model_row (E_TABLE (etable), select);
e_table_set_cursor_row (E_TABLE (etable), row);
}
- e_client_util_free_object_slist (list);
+ g_slist_free_full (list, (GDestroyNotify) g_object_unref);
}
void
@@ -1499,7 +1501,7 @@ e_addressbook_view_view (EAddressbookView *view)
addressbook_view_emit_open_contact (
view, iter->data, FALSE);
- e_client_util_free_object_slist (list);
+ g_slist_free_full (list, (GDestroyNotify) g_object_unref);
}
void
diff --git a/addressbook/gui/widgets/e-contact-map-window.c b/addressbook/gui/widgets/e-contact-map-window.c
index 2e3aec5bcb..aa31f297fe 100644
--- a/addressbook/gui/widgets/e-contact-map-window.c
+++ b/addressbook/gui/widgets/e-contact-map-window.c
@@ -101,7 +101,7 @@ book_contacts_received_cb (GObject *source_object,
e_contact_map_add_contact (
window->priv->map, (EContact *) p->data);
- e_client_util_free_object_slist (contacts);
+ g_slist_free_full (contacts, (GDestroyNotify) g_object_unref);
g_object_unref (client);
}
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index 08b0cdabf4..1a35f3aa09 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -124,7 +124,7 @@ e_minicard_view_drag_data_get (GtkWidget *widget,
static void
clear_drag_data (EMinicardView *view)
{
- e_client_util_free_object_slist (view->drag_list);
+ g_slist_free_full (view->drag_list, (GDestroyNotify) g_object_unref);
view->drag_list = NULL;
}
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 1fc8644833..b692fdf2ce 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -469,7 +469,9 @@ process_unref (ContactCopyProcess *process)
if (process->count > 0)
return;
}
- e_client_util_free_object_slist (process->contacts);
+ g_slist_free_full (
+ process->contacts,
+ (GDestroyNotify) g_object_unref);
g_object_unref (process->source);
g_object_unref (process->destination);
g_object_unref (process->registry);