[pygobject] pygi-convert.sh: Move some glib bits which are better handled by gobject
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pygi-convert.sh: Move some glib bits which are better handled by gobject
- Date: Thu, 20 Jan 2011 10:40:39 +0000 (UTC)
commit b238cb614338f46e6feb7935cca0a55c7a929418
Author: Martin Pitt <martin pitt ubuntu com>
Date: Thu Jan 20 11:40:14 2011 +0100
pygi-convert.sh: Move some glib bits which are better handled by gobject
pygi-convert.sh | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index c289b8c..4cf54e4 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -151,6 +151,9 @@ for f in $FILES_TO_CONVERT; do
-pe "s/Gio.vfs_/Gio.Vfs./g;" \
\
-pe "# GLib is not introspectable very well, for now we keep using the static bindings" \
+ -pe "s/glib.GError\n/gobject.GError/g;" \
+ -pe "s/glib.timeout_add\b/gobject.timeout_add/g;" \
+ -pe "s/glib.MainLoop\b/gobject.MainLoop/g;" \
-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;" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]