From 94255bf43b3fb2dd2684c87b18dbf8448f72d8fb Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 9 Jan 2009 16:15:40 +0000 Subject: Make the error in the call_when_ready callback const Signed-off-by: Sjoerd Simons svn path=/trunk/; revision=2192 --- libempathy/empathy-contact.c | 2 +- libempathy/empathy-contact.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 6c521650f..437b726bb 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -394,7 +394,7 @@ contact_weak_object_notify (gpointer data, GObject *old_object) } static void -contact_call_ready_callback (EmpathyContact *contact, GError *error, +contact_call_ready_callback (EmpathyContact *contact, const GError *error, ReadyCbData *data) { data->callback (contact, error, data->user_data, data->weak_object); diff --git a/libempathy/empathy-contact.h b/libempathy/empathy-contact.h index b8d970d97..52c969f61 100644 --- a/libempathy/empathy-contact.h +++ b/libempathy/empathy-contact.h @@ -114,7 +114,7 @@ gboolean empathy_contact_equal (gconstpointer v1, gconstpointer v2); guint empathy_contact_hash (gconstpointer key); typedef void (EmpathyContactReadyCb) - (EmpathyContact *contact, GError *error, gpointer user_data, + (EmpathyContact *contact, const GError *error, gpointer user_data, GObject *weak_object); void empathy_contact_call_when_ready (EmpathyContact *contact, EmpathyContactReady ready, EmpathyContactReadyCb *callback, gpointer -- cgit v1.2.3