_ATSPI_DBUS_CHECK_SIG: remove warning when no message received
authorMike Gorse <mgorse@suse.com>
Wed, 23 May 2012 19:19:26 +0000 (14:19 -0500)
committerMike Gorse <mgorse@suse.com>
Wed, 23 May 2012 19:19:26 +0000 (14:19 -0500)
atspi/atspi-accessible.c
atspi/atspi-misc-private.h

index d19d976..3159f05 100644 (file)
@@ -661,10 +661,10 @@ defunct_set ()
 AtspiStateSet *
 atspi_accessible_get_state_set (AtspiAccessible *obj)
 {
+  /* TODO: Should take a GError **, but would be an API break */
   if (!obj->parent.app || !obj->parent.app->bus)
     return defunct_set ();
 
-
   if (!_atspi_accessible_test_cache (obj, ATSPI_CACHE_STATES))
   {
     DBusMessage *reply;
index e00df3f..f3f4d71 100644 (file)
@@ -113,10 +113,8 @@ void _atspi_dbus_set_interfaces (AtspiAccessible *accessible, DBusMessageIter *i
 void _atspi_dbus_set_state (AtspiAccessible *accessible, DBusMessageIter *iter);
 
 #define _ATSPI_DBUS_CHECK_SIG(message, type, error, ret) \
-  if (!message) { \
-    g_warning ("at-spi: Got no message at %s line %d\n", __FILE__, __LINE__); \
+  if (!message) \
     return (ret); \
-  } \
   if (dbus_message_get_type (message) == DBUS_MESSAGE_TYPE_ERROR) \
   { \
     const char *err; \