[pygobject] pygi-convert.sh: improve GtkSourceView conversion



commit b03cc9e0d66d8caea3cd6a63db198c43de9267e9
Author: Paolo Borelli <pborelli gnome org>
Date:   Mon Dec 13 10:21:52 2010 +0100

    pygi-convert.sh: improve GtkSourceView conversion

 pygi-convert.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 22fbeea..ddc0030 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -170,6 +170,13 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/_sugarext\./SugarExt\./g;" \
 \
     -pe "s/import gtksourceview2\n/from gi.repository import GtkSource\n/g;" \
+    -pe "s/import gtksourceview2 as gsv\n/from gi.repository import GtkSource\n/g;" \
+    -pe "s/gtksourceview2\./GtkSource\./g;" \
+    -pe "s/gsv\./GtkSource\./g;" \
+    -pe "s/GtkSource.DRAW_SPACES_/GtkSource.DrawSpacesFlags./g;" \
+    -pe "s/GtkSource.SMART_HOME_END_/GtkSource.SmartHomeEndType./g;" \
+    -pe "s/GtkSource.style_scheme_manager_get_default/GtkSource.StyleSchemeManager.get_default/g;" \
+    -pe "s/GtkSource.language_manager_get_default/GtkSource.LanguageManager.get_default/g;" \
 \
     -pe "#s/import cairo\n/from gi.repository import cairo\n/g;" \
 \



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