From b4a61235da4e604eca92d3f38a391a1e76a63d1c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 30 Aug 2010 08:50:09 -0400 Subject: [PATCH] Introspection: make 'direction' default to 'in' for methods --- gio/gdbusintrospection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.7.4