[pygobject] Add the same rules for pack_start to convert pack_end



commit e3a63eefa5fb2abeabd210790e12642e577363c8
Author: Manuel QuiÃones <manuq laptop org>
Date:   Wed Jul 11 13:18:16 2012 -0300

    Add the same rules for pack_start to convert pack_end
    
    Signed-off-by: Manuel QuiÃones <manuq laptop org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679760

 pygi-convert.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 2066a0a..de27f8b 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -85,6 +85,11 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/pack_start\(([^,]*), fill=([^,\)]*)\)/pack_start\(\1, True, \2, 0\)/g;" \
     -pe "s/pack_start\(([^,]*), expand=([^,\)]*)\)/pack_start\(\1, \2, True, 0\)/g;" \
     -pe "s/pack_start\(([^,]*),(\s*)padding=([A-Za-z0-9._]*)\)/pack_start\(\1,\2True, True,\2\3\)/g;" \
+    -pe "s/column.pack_end\(([^,\)]*)\)/column.pack_end\(\1, True\)/g;" \
+    -pe "s/pack_end\(([^,\)]*)\)/pack_end\(\1, True, True, 0\)/g;" \
+    -pe "s/pack_end\(([^,]*), fill=([^,\)]*)\)/pack_end\(\1, True, \2, 0\)/g;" \
+    -pe "s/pack_end\(([^,]*), expand=([^,\)]*)\)/pack_end\(\1, \2, True, 0\)/g;" \
+    -pe "s/pack_end\(([^,]*),(\s*)padding=([A-Za-z0-9._]*)\)/pack_end\(\1,\2True, True,\2\3\)/g;" \
     -pe "#s/Gtk.HBox\(\)/Gtk.HBox\(False, 0\)/g;" \
     -pe "#s/Gtk.VBox\(\)/Gtk.VBox\(False, 0\)/g;" \
     -pe "s/Gtk.Label\s*\(([^,\)]+)\)/Gtk.Label\(label=\1\)/g;" \



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