[pygobject] pygi-convert.sh: Make sure the uppercase GObject module is imported instead of the lowercase



commit eb8f212e3687af30407cf01fcdfbf530257bcddb
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Fri Apr 15 16:14:43 2011 +0200

    pygi-convert.sh: Make sure the uppercase GObject module is imported instead of the lowercase
    
    https://bugzilla.gnome.org/show_bug.cgi?id=647736

 pygi-convert.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 3eaa249..ba5cdf2 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -88,6 +88,7 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/len\(self._content.get_children\(\)\) > 0/self._content.get_children\(\)/g;" \
     -pe "s/len\(self.menu.get_children\(\)\) > 0/self.menu.get_children\(\)/g;" \
     -pe "s/([^\.^ ]*)\.drag_dest_set\(/Gtk.drag_dest_set\(\1, /g;" \
+    -pe "s/import gobject\n/from gi.repository import GObject\n/g;" \
     -pe "s/Gtk\..*\.__init__/gobject.GObject.__init__/g;" \
 \
     -pe "s/from gtk import gdk\n/from gi.repository import Gdk\n/g;" \



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