Introspection: make 'direction' default to 'in' for methods
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Aug 2010 12:50:09 +0000 (08:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Aug 2010 12:50:09 +0000 (08:50 -0400)
gio/gdbusintrospection.c

index 1583d7f..e79bf95 100644 (file)
@@ -1508,7 +1508,10 @@ parser_start_element (GMarkupParseContext  *context,
                                         G_MARKUP_COLLECT_INVALID))
         goto out;
 
-      is_in = FALSE;
+      if (strcmp (stack->next->data, "method") == 0)
+        is_in = TRUE;
+      else
+        is_in = FALSE;
       if (direction != NULL)
         {
           if (strcmp (direction, "in") == 0)