empathy r771 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r771 - trunk/libempathy
- Date: Tue, 11 Mar 2008 12:23:05 +0000 (GMT)
Author: xclaesse
Date: Tue Mar 11 12:23:05 2008
New Revision: 771
URL: http://svn.gnome.org/viewvc/empathy?rev=771&view=rev
Log:
Display GError's message when a call fails.
Modified:
trunk/libempathy/empathy-tp-chat.c
Modified: trunk/libempathy/empathy-tp-chat.c
==============================================================================
--- trunk/libempathy/empathy-tp-chat.c (original)
+++ trunk/libempathy/empathy-tp-chat.c Tue Mar 11 12:23:05 2008
@@ -347,6 +347,12 @@
priv->had_pending_messages = TRUE;
+ if (error) {
+ empathy_debug (DEBUG_DOMAIN, "Error listing pending messages: %s",
+ error->message);
+ return;
+ }
+
for (i = 0; i < messages_list->len; i++) {
EmpathyMessage *message;
GValueArray *message_struct;
@@ -429,6 +435,12 @@
gpointer user_data,
GObject *chat)
{
+ if (error) {
+ empathy_debug (DEBUG_DOMAIN, "Error getting properties: %s",
+ error->message);
+ return;
+ }
+
empathy_debug (DEBUG_DOMAIN, "Got value of properties");
tp_chat_properties_changed_cb (proxy, properties, user_data, chat);
}
@@ -446,6 +458,12 @@
priv->had_properties_list = TRUE;
+ if (error) {
+ empathy_debug (DEBUG_DOMAIN, "Error listing properties: %s",
+ error->message);
+ return;
+ }
+
ids = g_array_sized_new (FALSE, FALSE, sizeof (guint), properties->len);
priv->properties = g_ptr_array_sized_new (properties->len);
for (i = 0; i < properties->len; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]