[at-spi2-core/gnome-3-0] Fix table properties that return objects



commit afd7b3ba361a010c90c710be53e0ac8f9c7afecb
Author: Mike Gorse <mgorse novell com>
Date:   Tue May 17 17:07:30 2011 -0500

    Fix table properties that return objects

 atspi/atspi-misc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 886f92c..c353ae4 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -1019,6 +1019,7 @@ _atspi_dbus_get_property (gpointer obj, const char *interface, const char *name,
   DBusError err;
   dbus_bool_t retval = FALSE;
   AtspiObject *aobj = ATSPI_OBJECT (obj);
+  char expected_type = (type [0] == '(' ? 'r' : type [0]);
 
   if (!aobj)
     return FALSE;
@@ -1066,7 +1067,7 @@ _atspi_dbus_get_property (gpointer obj, const char *interface, const char *name,
     goto done;
   }
   dbus_message_iter_recurse (&iter, &iter_variant);
-  if (dbus_message_iter_get_arg_type (&iter_variant) != type[0])
+  if (dbus_message_iter_get_arg_type (&iter_variant) != expected_type)
   {
     g_warning (_("atspi_dbus_get_property: Wrong type: expected %s, got %c\n"), type, dbus_message_iter_get_arg_type (&iter_variant));
     goto done;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]