[pygtksourceview/gtksourcecompletion] Added bindings for new API
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Subject: [pygtksourceview/gtksourcecompletion] Added bindings for new API
- Date: Sun, 19 Apr 2009 07:19:13 -0400 (EDT)
commit 6213a930c8cfec3bc9434d13a40c1436c73e0556
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sun Apr 19 13:14:31 2009 +0200
Added bindings for new API
Bindings for gtk_source_completion_get_from_provider and gtk_source_completion_get_view. Also moved activation of proposal from proposal to provider as in the new API
---
gtksourceview2.defs | 42 +++++++++++++++++++++++++++++-------------
1 files changed, 29 insertions(+), 13 deletions(-)
diff --git a/gtksourceview2.defs b/gtksourceview2.defs
index e63d5e5..dadfacf 100644
--- a/gtksourceview2.defs
+++ b/gtksourceview2.defs
@@ -859,9 +859,6 @@
)
)
-
-
-
;; From gtksourcemark.h
(define-function gtk_source_mark_new
@@ -1218,6 +1215,14 @@
(return-type "GType")
)
+(define-function completion_get_from_provider
+ (c-name "gtk_source_completion_get_from_provider")
+ (return-type "GtkSourceCompletion*")
+ (parameters
+ '("GtkSourceCompletionProvider*" "provider")
+ )
+)
+
(define-method add_provider
(of-object "GtkSourceCompletion")
(c-name "gtk_source_completion_add_provider")
@@ -1258,6 +1263,11 @@
(return-type "GtkSourceCompletionInfo*")
)
+(define-method get_view
+ (of-object "GtkSourceCompletion")
+ (c-name "gtk_source_completion_get_view")
+ (return-type "GtkSourceView*")
+)
;; From gtksourcecompletioninfo.h
@@ -1365,16 +1375,6 @@
(return-type "const-gchar*")
)
-(define-method activate
- (of-object "GtkSourceCompletionProposal")
- (c-name "gtk_source_completion_proposal_activate")
- (return-type "gboolean")
- (parameters
- '("GtkSourceBuffer*" "buffer")
- )
-)
-
-
;; From gtksourcecompletionprovider.h
@@ -1442,6 +1442,14 @@
)
)
+(define-method activate_proposal
+ (of-object "GtkSourceCompletionProvider")
+ (c-name "gtk_source_completion_provider_activate_proposal")
+ (return-type "gboolean")
+ (parameters
+ '("GtkSourceCompletionProposal*" "proposal")
+ )
+)
;; virtuals
@@ -1519,3 +1527,11 @@
'("GtkSourceCompletionInfo*" "info")
)
)
+
+(define-virtual activate_proposal
+ (of-object "GtkSourceCompletionProvider")
+ (return-type "gboolean")
+ (parameters
+ '("GtkSourceCompletionProposal*" "proposal")
+ )
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]