diff options
author | Murray Cumming <murrayc@murrayc.com> | 2011-02-28 13:05:37 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2011-02-28 13:06:51 +0100 |
commit | da0c53c6f60719ebcb34b657d78fb7bccf760c6d (patch) | |
tree | 017d079d6c79d74ac5ac8778eb82dc676bde206b | |
parent | 732ac9c3b31a6e10b35b72cf6f7f295d8d6d3ee8 (diff) | |
download | glibmm-da0c53c6f60719ebcb34b657d78fb7bccf760c6d.tar.gz |
Application: Wrap the local_command_line vfunc, though it is not finished.
* gio/src/application.hg:
* gio/src/gio_vfuncs.defs: Wrap the local_command_line vfunc, though see
the bug report in the comment.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gio/src/application.hg | 16 | ||||
-rw-r--r-- | gio/src/gio_vfuncs.defs | 11 |
3 files changed, 34 insertions, 1 deletions
@@ -1,5 +1,11 @@ -2.27.95: +2011-02-28 Murray Cumming <murrayc@murrayc.com> + Application: Wrap the local_command_line vfunc, though it is not finished. + + * gio/src/application.hg: + * gio/src/gio_vfuncs.defs: Wrap the local_command_line vfunc, though see + the bug report in the comment. + 2011-02-24 Murray Cumming <murrayc@murrayc.com> tests: Remove remaining use of std::cout. diff --git a/gio/src/application.hg b/gio/src/application.hg index bcbd1dad..73b45b81 100644 --- a/gio/src/application.hg +++ b/gio/src/application.hg @@ -171,6 +171,22 @@ protected: _POP() #m4end + //TODO: Change the parameter types when we know how they are really used. + //See https://bugzilla.gnome.org/show_bug.cgi?id=643478 + _WRAP_VFUNC(bool local_command_line(gchar*** arguments, int* exit_status), local_command_line) + +/* TODO: + void (* before_emit) (GApplication *application, + GVariant *platform_data); + void (* after_emit) (GApplication *application, + GVariant *platform_data); + void (* add_platform_data) (GApplication *application, + GVariantBuilder *builder); + void (* quit_mainloop) (GApplication *application); + void (* run_mainloop) (GApplication *application); +*/ + + private: /** This is just a way to call Glib::init() (which calls g_type_init()) before * calling application_class_.init(), so that diff --git a/gio/src/gio_vfuncs.defs b/gio/src/gio_vfuncs.defs index c4547fd4..65da5a1f 100644 --- a/gio/src/gio_vfuncs.defs +++ b/gio/src/gio_vfuncs.defs @@ -3,6 +3,17 @@ ; define-vfunc is g*mm-specific ; These are hand-written. +; GApplication + +(define-vfunc local_command_line + (of-object "GApplication") + (return-type "gboolean") + (parameters + '("gchar***" "arguments") + '("int*" "exit_status") + ) +) + ; GAsyncInitable (define-vfunc init_async |