[pygobject] pygi-convert.sh: more GLib conversion



commit acc9f84bc6e13d76c6516cefe393d4a4f868aa24
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Dec 12 14:19:00 2010 +0100

    pygi-convert.sh: more GLib conversion

 pygi-convert.sh |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 43ca1ad..e341dcc 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -114,6 +114,13 @@ for f in $FILES_TO_CONVERT; do
 \
     -pe "s/import glib\n/from gi.repository import GLib\n/g;" \
     -pe "s/glib\./GLib\./g;" \
+    -pe "s/GLib.IO_(ERR|HUP|IN|NVAL|OUT|PRI)/GLib.IOCondition./g;" \
+    -pe "s/GLib.IO_FLAG_/GLib.IOFlags./g;" \
+    -pe "s/GLib.IO_STATUS_/GLib.IOStatus./g;" \
+    -pe "s/GLib.OPTION_ERROR_/GLib.OptionError./g;" \
+    -pe "s/GLib.OPTION_FLAG_/GLib.OptionFlags./g;" \
+    -pe "s/GLib.SPAWN_/GLib.SpawnFlags./g;" \
+    -pe "s/GLib.USER_DIRECTORY_/GLib.UserDirectory.DIRECTORY_/g;" \
 \
     -pe "s/import hippo\n/from gi.repository import Hippo\n/g;" \
     -pe "s/hippo\./Hippo\./g;" \



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