[pygobject] Convert ACCEL_* constants into Gtk.AccelFlags.
- From: Olav Vitters <ovitters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Convert ACCEL_* constants into Gtk.AccelFlags.
- Date: Wed, 24 Aug 2011 14:31:38 +0000 (UTC)
commit d6da96c65b2ed3cda238886990a624fbc31f6987
Author: Olav Vitters <olav vitters nl>
Date: Wed Aug 24 16:31:12 2011 +0200
Convert ACCEL_* constants into Gtk.AccelFlags.
pygi-convert.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index fd20127..03e9891 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -19,6 +19,7 @@ for f in $FILES_TO_CONVERT; do
-pe "s/pygtk.require\('2.0'\)/gi.require_version\('Gtk', '3.0'\)/g;" \
-pe "s/import gtk\n/from gi.repository import Gtk\n/g;" \
-pe "s/(?<!\.)gtk\./Gtk\./g;" \
+ -pe "s/Gtk.ACCEL_/Gtk.AccelFlags./g;" \
-pe "s/Gtk.ARROW_/Gtk.ArrowType./g;" \
-pe "s/Gtk.ASSISTANT_PAGE_/Gtk.AssistantPageType./g;" \
-pe "s/Gtk.BUTTONBOX_/Gtk.ButtonBoxStyle./g;" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]