Skip to content

Commit

Permalink
pygi-convert.sh add GObject.xxx and webkit
Browse files Browse the repository at this point in the history
  • Loading branch information
nzjrs authored and John (J5) Palmieri committed Mar 21, 2011
1 parent f5ee292 commit 205fee1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pygi-convert.sh
Expand Up @@ -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/(?<!\.)gdk\./Gdk\./g;" \
Expand Down Expand Up @@ -168,6 +169,10 @@ for f in $FILES_TO_CONVERT; do
-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/(?<!\.)gobject\./GObject\./g;" \
-pe "s/GObject.SIGNAL_/GObject.SignalFlags./g;" \
-pe "s/GObject.TYPE_NONE/None/g;" \
\
-pe "s/import hippo\n/from gi.repository import Hippo\n/g;" \
-pe "s/hippo\./Hippo\./g;" \
Expand Down Expand Up @@ -220,6 +225,8 @@ for f in $FILES_TO_CONVERT; do
\
-pe "s/import pynotify\n/from gi.repository import Notify\n/g;" \
-pe "s/pynotify\./Notify\./g;" \
\
-pe "s/import webkit\n/from gi.repository import WebKit\n/g;" \
$f
done

Expand Down

0 comments on commit 205fee1

Please sign in to comment.