[pygobject/pygobject-2-28] pygi-convert.sh: Make sure the uppercase GObject module is imported instead of the lowercase
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28] pygi-convert.sh: Make sure the uppercase GObject module is imported instead of the lowercase
- Date: Fri, 15 Apr 2011 14:17:46 +0000 (UTC)
commit 0e9e4ec7c28ac4564e15283636adc8b7bc1a83be
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]