GNOME Bugzilla – Bug 784387
ExecuteMethodDialog does not pretty-print multiple results
Last modified: 2017-11-24 15:57:35 UTC
Created attachment 354736 [details] [review] ExecuteMethodDialog: Pretty-print multiple results If a D-Bus method returns multiple results, d-feet previously only pretty-printed the first. Print them one per line, so a method with return signature 'isa{sv}' might end up showing: 123, "hello, world!", {}
The use of ",\n".join() preserves current behaviour if there is only one result: there is no comma and no newline. I'm making use of multiple returns (or, technically, multiple 'out' parameters) in <https://bugs.freedesktop.org/show_bug.cgi?id=100344>.
Review of attachment 354736 [details] [review]: I wrote a very similar patch just now – looks fine to me. I was about to qualify this with "I'm not a D-Feet maintainer" but apparently I originally contributed pretty-printing back in 2009 https://git.gnome.org/browse/d-feet/commit/?id=fb7e4a296b00f0b3867258eed5af6673492eb160 so arguably that qualifies me to approve this change.
Attachment 354736 [details] pushed as 3d3f0ec - ExecuteMethodDialog: Pretty-print multiple results