Set the gerror for a dbus error in _atspi_dbus_call
authorTrevor Saunders <trev.saunders@gmail.com>
Mon, 27 Jun 2011 14:32:08 +0000 (09:32 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 27 Jun 2011 14:32:08 +0000 (09:32 -0500)
atspi/atspi-misc.c

index 616dc22..0a24f24 100644 (file)
@@ -953,7 +953,7 @@ _atspi_dbus_call (gpointer obj, const char *interface, const char *method, GErro
   _atspi_process_deferred_messages ((gpointer)TRUE);
   if (dbus_error_is_set (&err))
   {
-    /* TODO: Set gerror */
+    g_set_error(error, ATSPI_ERROR, ATSPI_ERROR_IPC, err.message);
     dbus_error_free (&err);
   }
   return retval;