[glibmm] extra_defs: Add some new gio classes.



commit da769578061e973329c97c8407a2ccc6a7e17219
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Apr 2 22:38:36 2014 +0200

    extra_defs: Add some new gio classes.
    
    * tools/extra_defs_gen/generate_defs_gio.cc:
    * tools/extra_defs_gen/generate_defs_glib.cc:
      Mention some recently-added GTypes.
    * gio/src/gio/gio_signals.defs: Regenerate.

 gio/src/gio_signals.defs                   |  106 ++++++++++++++++++++++++++++
 tools/extra_defs_gen/generate_defs_gio.cc  |    5 ++
 tools/extra_defs_gen/generate_defs_glib.cc |    1 +
 3 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs
index 9f7acc9..ea5828a 100644
--- a/gio/src/gio_signals.defs
+++ b/gio/src/gio_signals.defs
@@ -190,6 +190,14 @@
   (construct-only #f)
 )
 
+;; From GAppInfoMonitor
+
+(define-signal changed
+  (of-object "GAppInfoMonitor")
+  (return-type "void")
+  (when "first")
+)
+
 ;; From GCancellable
 
 (define-signal cancelled
@@ -758,6 +766,73 @@
   (construct-only #f)
 )
 
+;; From GNotification
+
+;; From GPropertyAction
+
+(define-property name
+  (of-object "GPropertyAction")
+  (prop-type "GParamString")
+  (docs "The name used to invoke the action")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property parameter-type
+  (of-object "GPropertyAction")
+  (prop-type "GParamBoxed")
+  (docs "The type of GVariant passed to activate()")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property enabled
+  (of-object "GPropertyAction")
+  (prop-type "GParamBoolean")
+  (docs "If the action can be activated")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property state-type
+  (of-object "GPropertyAction")
+  (prop-type "GParamBoxed")
+  (docs "The type of the state kept by the action")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property state
+  (of-object "GPropertyAction")
+  (prop-type "GParamVariant")
+  (docs "The state the action is in")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property object
+  (of-object "GPropertyAction")
+  (prop-type "GParamObject")
+  (docs "The object with the property to wrap")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property property-name
+  (of-object "GPropertyAction")
+  (prop-type "GParamString")
+  (docs "The name of the property to wrap")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+
 ;; From GProxy
 
 ;; From GProxyAddress
@@ -1038,6 +1113,37 @@
   (construct-only #f)
 )
 
+;; From GSubprocess
+
+(define-property flags
+  (of-object "GSubprocess")
+  (prop-type "GParamFlags")
+  (docs "Subprocess flags")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+
+(define-property argv
+  (of-object "GSubprocess")
+  (prop-type "GParamBoxed")
+  (docs "Argument vector")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+
+;; From GSubprocessLauncher
+
+(define-property flags
+  (of-object "GSubprocessLauncher")
+  (prop-type "GParamFlags")
+  (docs "GSubprocessFlags for launched processes")
+  (readable #f)
+  (writable #t)
+  (construct-only #t)
+)
+
 ;; From GThemedIcon
 
 (define-property name
diff --git a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc
index 6d202bb..df76459 100644
--- a/tools/extra_defs_gen/generate_defs_gio.cc
+++ b/tools/extra_defs_gen/generate_defs_gio.cc
@@ -42,6 +42,7 @@ int main(int, char**)
             << get_defs(G_TYPE_ACTION)
             << get_defs(G_TYPE_ACTION_GROUP)
             << get_defs(G_TYPE_APPLICATION)
+            << get_defs(G_TYPE_APP_INFO_MONITOR)
             << get_defs(G_TYPE_CANCELLABLE)
             << get_defs(G_TYPE_BUFFERED_INPUT_STREAM)
             << get_defs(G_TYPE_BUFFERED_OUTPUT_STREAM)
@@ -80,6 +81,8 @@ int main(int, char**)
             << get_defs(G_TYPE_MENU_MODEL)
             << get_defs(G_TYPE_MOUNT)
             << get_defs(G_TYPE_MOUNT_OPERATION)
+            << get_defs(G_TYPE_NOTIFICATION)
+            << get_defs(G_TYPE_PROPERTY_ACTION)
             << get_defs(G_TYPE_PROXY)
             << get_defs(G_TYPE_PROXY_ADDRESS)
             << get_defs(G_TYPE_PROXY_ADDRESS_ENUMERATOR)
@@ -89,6 +92,8 @@ int main(int, char**)
             << get_defs(G_TYPE_SETTINGS_BACKEND)
             << get_defs(G_TYPE_SIMPLE_ASYNC_RESULT)
             << get_defs(G_TYPE_SIMPLE_ACTION)
+            << get_defs(G_TYPE_SUBPROCESS)
+            << get_defs(G_TYPE_SUBPROCESS_LAUNCHER)
             << get_defs(G_TYPE_THEMED_ICON)
 
             //TODO: This causes a g_warning:
diff --git a/tools/extra_defs_gen/generate_defs_glib.cc b/tools/extra_defs_gen/generate_defs_glib.cc
index 01176b7..45c6278 100644
--- a/tools/extra_defs_gen/generate_defs_glib.cc
+++ b/tools/extra_defs_gen/generate_defs_glib.cc
@@ -31,6 +31,7 @@ int main()
             << get_defs( G_TYPE_IO_CHANNEL )
             << get_defs( G_TYPE_REGEX )
             << get_defs( G_TYPE_VARIANT )
+            << get_defs( G_TYPE_VARIANT_DICT )
             << std::endl;
 
   return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]