aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-27 19:44:35 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-18 23:18:02 +0800
commit210388d6821d72dacd55063ad805857a27c14e3f (patch)
tree5f63bbf1372ac884ca939bdd41e90faa12ca0645 /libempathy-gtk/empathy-log-window.c
parentb0eb7b2baf39cd5a509668bc53e5e34d70cb255d (diff)
downloadgsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar.gz
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar.bz2
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar.lz
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar.xz
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.tar.zst
gsoc2013-empathy-210388d6821d72dacd55063ad805857a27c14e3f.zip
port to latest tp-logger API
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c30
1 files changed, 12 insertions, 18 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index ac889fc96..11d7ca43f 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -368,9 +368,8 @@ got_messages_for_date_cb (GObject *manager,
gboolean can_do_next;
GError *error = NULL;
- messages = tpl_log_manager_get_messages_for_date_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_get_messages_for_date_finish (TPL_LOG_MANAGER (manager),
+ result, &messages, &error)) {
DEBUG ("Unable to retrieve messages for the selected date: %s. Aborting",
error->message);
empathy_chat_view_append_event (window->chatview_find,
@@ -523,9 +522,8 @@ log_manager_searched_new_cb (GObject *manager,
GtkListStore *store = user_data;
GError *error = NULL;
- hits = tpl_log_manager_search_new_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_search_new_finish (TPL_LOG_MANAGER (manager), result,
+ &hits, &error)) {
DEBUG ("%s. Aborting", error->message);
g_error_free (error);
return;
@@ -848,9 +846,8 @@ log_manager_got_chats_cb (GObject *manager,
GtkTreeIter iter;
GError *error = NULL;
- chats = tpl_log_manager_get_chats_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_get_chats_finish (TPL_LOG_MANAGER (manager),
+ result, &chats, &error)) {
DEBUG ("%s. Aborting", error->message);
g_error_free (error);
return;
@@ -1146,9 +1143,8 @@ log_window_got_messages_for_date_cb (GObject *manager,
GList *l;
GError *error = NULL;
- messages = tpl_log_manager_get_messages_for_date_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_get_messages_for_date_finish (TPL_LOG_MANAGER (manager),
+ result, &messages, &error)) {
DEBUG ("Unable to retrieve messages for the selected date: %s. Aborting",
error->message);
empathy_chat_view_append_event (window->chatview_find,
@@ -1221,9 +1217,8 @@ log_manager_got_dates_cb (GObject *manager,
const gchar *date = NULL;
GError *error = NULL;
- dates = tpl_log_manager_get_dates_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_get_dates_finish (TPL_LOG_MANAGER (manager),
+ result, &dates, &error)) {
DEBUG ("Unable to retrieve messages' dates: %s. Aborting",
error->message);
empathy_chat_view_append_event (window->chatview_find,
@@ -1523,9 +1518,8 @@ log_window_updating_calendar_month_cb (GObject *manager,
guint month_selected;
GError *error = NULL;
- dates = tpl_log_manager_get_dates_async_finish (result, &error);
-
- if (error != NULL) {
+ if (!tpl_log_manager_get_dates_finish (TPL_LOG_MANAGER (manager),
+ result, &dates, &error)) {
DEBUG ("Unable to retrieve messages' dates: %s. Aborting",
error->message);
empathy_chat_view_append_event (window->chatview_find,