Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pybank-convert.sh
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-05-13 13:48:21 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-05-13 13:48:21 (GMT)
commita725e123bd021f360c32a04fc9087fff60a0ce70 (patch)
tree07dbb9e8c6b3aaaa465be291f9c9896ca52c669b /pybank-convert.sh
parentc1888cd0b83d1751b5a5d665451cd4adb5db1333 (diff)
Replace constructors with gobject.GObject.__init__
Diffstat (limited to 'pybank-convert.sh')
-rwxr-xr-xpybank-convert.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/pybank-convert.sh b/pybank-convert.sh
index a79daae..2751bd3 100755
--- a/pybank-convert.sh
+++ b/pybank-convert.sh
@@ -15,6 +15,7 @@ for f in $@; do
s/Gtk.TARGET_SAME_WIDGET/Gtk.TargetFlags.SAME_WIDGET/g
s/Gtk.icon_theme_get_default/Gtk.IconTheme.get_default/g
s/.window.set_type_hint/.set_type_hint/g
+ s/Gtk\..*\.__init__/gobject.GObject.__init__/g
s/Gtk.gdk\./Gdk\./g
s/Gdk.screen_width/Gdk.Screen.width/g
@@ -42,3 +43,6 @@ done
echo 'Add "import Gdk" to'
rgrep -l Gdk\. $(find . -iname \*.py) | xargs grep -nL import\ Gdk
+echo 'Add "import gobject" to'
+rgrep -l gobject\. $(find . -iname \*.py) | xargs grep -nL import\ gobject
+