From 205fee1622e461c0bcbe50e8befe30f01aac81eb Mon Sep 17 00:00:00 2001 From: John Stowers Date: Sun, 6 Mar 2011 23:41:01 +1300 Subject: [PATCH] pygi-convert.sh add GObject.xxx and webkit https://bugzilla.gnome.org/show_bug.cgi?id=644347 --- pygi-convert.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pygi-convert.sh b/pygi-convert.sh index 67b3d25..5b54618 100644 --- a/pygi-convert.sh +++ b/pygi-convert.sh @@ -91,6 +91,7 @@ for f in $FILES_TO_CONVERT; do -pe "s/Gtk\..*\.__init__/gobject.GObject.__init__/g;" \ \ -pe "s/from gtk import gdk\n/from gi.repository import Gdk\n/g;" \ + -pe "s/import gtk.gdk as gdk\n/from gi.repository import Gdk\n/g;" \ -pe "s/Gtk.gdk.x11_/GdkX11\./g;" \ -pe "s/Gtk.gdk\./Gdk\./g;" \ -pe "s/(?