[pygobject] pygi-convert.sh: start handling Gio and GLib



commit f0a1d6b6bb53d0fa2788d8b9027d737b0aef8dfc
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Dec 12 12:29:38 2010 +0100

    pygi-convert.sh: start handling Gio and GLib

 pygi-convert.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 5a4d5ae..cdbd387 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -109,6 +109,14 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/Pango.UNDERLINE_/Pango.Underline./g;" \
     -pe "s/Pango.WEIGHT_/Pango.Weight./g;" \
 \
+    -pe "s/import gio\n/from gi.repository import Gio\n/g;" \
+    -pe "s/gio\./Gio\./g;" \
+    -pe "s/Gio.FILE_TYPE_/Gio.FileType./g;" \
+    -pe "s/Gio.vfs_/Gio.Vfs./g;" \
+\
+    -pe "s/import glib\n/from gi.repository import GLib\n/g;" \
+    -pe "s/glib\./GLib\./g;" \
+\
     -pe "s/import hippo\n/from gi.repository import Hippo\n/g;" \
     -pe "s/hippo\./Hippo\./g;" \
     -pe "s/Hippo\..*\.__init__/gobject.GObject.__init__/g;" \



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