[glib] Introspection: make 'direction' default to 'in' for methods



commit b4a61235da4e604eca92d3f38a391a1e76a63d1c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 30 08:50:09 2010 -0400

    Introspection: make 'direction' default to 'in' for methods

 gio/gdbusintrospection.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c
index 1583d7f..e79bf95 100644
--- a/gio/gdbusintrospection.c
+++ b/gio/gdbusintrospection.c
@@ -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)



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