aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/scintilla-marshal.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2016-05-17 22:11:17 +0200
committerThomas Martitz <kugel@rockbox.org>2016-05-17 22:11:17 +0200
commitace28857b70d8a8fe97cdf29f937614eb13de781 (patch)
tree11c759eaec999dd5a934797546b35a1fa5d42179 /gtk/scintilla-marshal.h
parent99d52264a609b61e8639f3c1087a78fedb0b9de8 (diff)
downloadscintilla-mirror-ace28857b70d8a8fe97cdf29f937614eb13de781.tar.gz
Enable g-ir-scanner to scan ScintillaObject signals
Currently, the ScintillaObject signals can't be used from python code via gobject-introspection. This is because g-ir-scanner does not properly scan the signals. For signals, there is the additional requirement that parameters have are registered GTypes. For the sci-notify signal, this can be accomplished by boxing SCNotification. In addition, g-ir-scanner also runs on Scintilla.h where it picks up additional structs. test/gi/ is updated accordingly. The test python script is enhanced to showcase the signals (some fixes to the makefile are included as well).
Diffstat (limited to 'gtk/scintilla-marshal.h')
-rw-r--r--gtk/scintilla-marshal.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/gtk/scintilla-marshal.h b/gtk/scintilla-marshal.h
index 9116a56c9..7d5e17bba 100644
--- a/gtk/scintilla-marshal.h
+++ b/gtk/scintilla-marshal.h
@@ -6,14 +6,23 @@
G_BEGIN_DECLS
-/* NONE:INT,POINTER (scintilla-marshal.list:1) */
-extern void scintilla_marshal_VOID__INT_POINTER (GClosure *closure,
- GValue *return_value,
- guint n_param_values,
- const GValue *param_values,
- gpointer invocation_hint,
- gpointer marshal_data);
-#define scintilla_marshal_NONE__INT_POINTER scintilla_marshal_VOID__INT_POINTER
+/* NONE:INT,OBJECT (scintilla-marshal.list:1) */
+extern void scintilla_marshal_VOID__INT_OBJECT (GClosure *closure,
+ GValue *return_value,
+ guint n_param_values,
+ const GValue *param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+#define scintilla_marshal_NONE__INT_OBJECT scintilla_marshal_VOID__INT_OBJECT
+
+/* NONE:INT,BOXED (scintilla-marshal.list:2) */
+extern void scintilla_marshal_VOID__INT_BOXED (GClosure *closure,
+ GValue *return_value,
+ guint n_param_values,
+ const GValue *param_values,
+ gpointer invocation_hint,
+ gpointer marshal_data);
+#define scintilla_marshal_NONE__INT_BOXED scintilla_marshal_VOID__INT_BOXED
G_END_DECLS