[pygobject] pygi-convert.sh: Handle .window attributes



commit 4c1d4faddf1c9cb233c484da3eadd8e31c231f70
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Wed Jan 19 18:43:29 2011 +0100

    pygi-convert.sh: Handle .window attributes
    
    In general, convert them to .get_window(). For some of them, prefer calling the
    GtkWidget methods instead.

 pygi-convert.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index ef1926c..70c3d0c 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -64,7 +64,10 @@ for f in $FILES_TO_CONVERT; do
     -pe "s/set_flags\(Gtk.CAN_DEFAULT\)/set_can_default\(True\)/g;" \
     -pe "s/.flags\(\) & Gtk.MAPPED/.get_mapped\(\)/g;" \
     -pe "s/.flags\(\) & Gtk.REALIZED/.get_realized\(\)/g;" \
-    -pe "s/.window.set_type_hint/.set_type_hint/g;" \
+    -pe "s/\.window\.set_type_hint/.set_type_hint/g;" \
+    -pe "s/\.window\.set_skip_taskbar_hint/.set_skip_taskbar_hint/g;" \
+    -pe "s/\.window\.set_transient_for/.set_transient_for/g;" \
+    -pe "s/\.window\b/.get_window()/g;" \
     -pe "s/self.drag_source_unset\(\)/Gtk.drag_source_unset\(self\)/g;" \
     -pe "s/self.drag_dest_unset\(\)/Gtk.drag_dest_unset\(self\)/g;" \
     -pe "s/Gtk.Alignment\(/Gtk.Alignment.new\(/g;" \



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