[glibmm] Application: Wrap the local_command_line vfunc, though it is not finished.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Application: Wrap the local_command_line vfunc, though it is not finished.
- Date: Mon, 28 Feb 2011 12:06:57 +0000 (UTC)
commit da0c53c6f60719ebcb34b657d78fb7bccf760c6d
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Feb 28 13:05:37 2011 +0100
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.
ChangeLog | 8 +++++++-
gio/src/application.hg | 16 ++++++++++++++++
gio/src/gio_vfuncs.defs | 11 +++++++++++
3 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b13380c..62aab10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 bcbd1da..73b45b8 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 c4547fd..65da5a1 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]