[gedit/libgpe: 9/18] Fix python bindings to make gedit.Plugin inherit from gpe.Plugin.



commit 16648c1a3adbfc08a18ec37d997402fa82fe647e
Author: Steve Frécinaux <code istique net>
Date:   Sun Nov 1 20:34:46 2009 +0100

    Fix python bindings to make gedit.Plugin inherit from gpe.Plugin.

 bindings/python/Makefile.am    |    1 +
 bindings/python/gedit.defs     |    2 +-
 bindings/python/gedit.override |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
index 3de60ca..fbf5411 100644
--- a/bindings/python/Makefile.am
+++ b/bindings/python/Makefile.am
@@ -45,6 +45,7 @@ gedit.c: gedit.defs gedit.override geditmessage.override $(top_builddir)/gedit/g
 		--register $(PYGTK_DEFSDIR)/gdk-types.defs \
 		--register $(PYGTK_DEFSDIR)/gtk-types.defs \
 		--register $(PYGTK_DEFSDIR)/gtksourceview2.defs \
+		--register $(PYGTK_DEFSDIR)/libgpe.defs \
 		--override $*.override \
 		--prefix py$* $(<F) ) > $@ 
 
diff --git a/bindings/python/gedit.defs b/bindings/python/gedit.defs
index 7811bac..041b480 100644
--- a/bindings/python/gedit.defs
+++ b/bindings/python/gedit.defs
@@ -37,7 +37,7 @@
 
 (define-object Plugin
   (in-module "Gedit")
-  (parent "GObject")
+  (parent "GPEPlugin")
   (c-name "GeditPlugin")
   (gtype-id "GEDIT_TYPE_PLUGIN")
 )
diff --git a/bindings/python/gedit.override b/bindings/python/gedit.override
index a1a6d7b..56b39ca 100644
--- a/bindings/python/gedit.override
+++ b/bindings/python/gedit.override
@@ -75,6 +75,7 @@ import gtksourceview2.Buffer as PyGtkSourceBuffer_Type
 import gtksourceview2.View as PyGtkSourceView_Type
 import gtksourceview2.Language as PyGtkSourceLanguage_Type
 import gtksourceview2.LanguageManager as PyGtkSourceLanguageManager_Type
+import libgpe.Plugin as PyGPEPlugin_Type
 %%
 ignore-glob
   *_get_type



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