[pygobject] pygi-convert.sh: add some Pango special cases



commit 63a97634031c3d159ad77fdaa1f6341d7656eb07
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Nov 27 22:23:24 2010 +0100

    pygi-convert.sh: add some Pango special cases

 pygi-convert.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index f8a56e9..731102f 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -86,6 +86,9 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/pango\./Pango\./g;" \
     -pe "s/Pango\.FontDescription/Pango\.Font\.description_from_string/g;" \
     -pe "s/Pango.ELLIPSIZE_/Pango.EllipsizeMode./g;" \
+    -pe "s/Pango.STYLE_/Pango.Style./g;" \
+    -pe "s/Pango.UNDERLINE_/Pango.Underline./g;" \
+    -pe "s/Pango.WEIGHT_/Pango.Weight./g;" \
 \
     -pe "s/import hippo\n/from gi.repository import Hippo\n/g;" \
     -pe "s/hippo\./Hippo\./g;" \



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