summaryrefslogtreecommitdiff
path: root/gio/src/applicationcommandline.hg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2014-04-03 11:12:03 +0200
committerMurray Cumming <murrayc@murrayc.com>2014-04-03 11:12:03 +0200
commit1bdd6540c70aa099dc6dab3537079264746396d7 (patch)
tree971343846edda2447847c041fc85436525cdd28d /gio/src/applicationcommandline.hg
parent415335bfd0a2393dd2650b483dbae4bb605c56e2 (diff)
downloadglibmm-1bdd6540c70aa099dc6dab3537079264746396d7.tar.gz
Application, ApplicationCommandLine: Wrap API that uses VariantDict.
* gio/src/application.hg: Add the handle-local-options signal. * gio/src/applicationcommandline: Add get_options_dict(). * tools/m4/convert_glib.m4: Add necessary conversions. I really need to try using this API so we can be sure that it is correct before calling it stable, because this part of the awful GApplication documentation is particularly awful.
Diffstat (limited to 'gio/src/applicationcommandline.hg')
-rw-r--r--gio/src/applicationcommandline.hg3
1 files changed, 2 insertions, 1 deletions
diff --git a/gio/src/applicationcommandline.hg b/gio/src/applicationcommandline.hg
index 8230c6d0..14e5d9c7 100644
--- a/gio/src/applicationcommandline.hg
+++ b/gio/src/applicationcommandline.hg
@@ -66,7 +66,8 @@ public:
_WRAP_METHOD(char** get_arguments(int& argc) const, g_application_command_line_get_arguments)
//TODO: Wrap the GVariantDict*. See also Application's handle-local-options signal.
- //_WRAP_METHOD(GVariantDict * g_application_command_line_get_options_dict(), g_application_command_line_get_options_dict)
+ _WRAP_METHOD(Glib::RefPtr<Glib::VariantDict> get_options_dict(), g_application_command_line_get_options_dict, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Glib::VariantDict> get_options_dict() const, g_application_command_line_get_options_dict, refreturn, constversion)
_WRAP_METHOD(Glib::RefPtr<InputStream> get_stdin(), g_application_command_line_get_stdin, refreturn)
_WRAP_METHOD(Glib::RefPtr<const InputStream> get_stdin() const, g_application_command_line_get_stdin, refreturn, constversion)