[pygobject] Make pygiconvert.sh correctly convert gtk.gdk.x11_*



commit 3dfb8dcbe7cf09dc170433fc48d3273c6ea9448e
Author: Simon Schampijer <simon schampijer de>
Date:   Thu Feb 2 19:06:01 2012 +0100

    Make pygiconvert.sh correctly convert gtk.gdk.x11_*
    
    Looking at the gir file gtk.gdk.x11_* should get converted to
    GdkX11.x11_*. Fixing pygiconvert.sh to do so.

 pygi-convert.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 8eab7a5..16faaae 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -100,7 +100,7 @@ for f in $FILES_TO_CONVERT; do
 \
     -pe "s/from gtk import gdk\n/from gi.repository import Gdk\n/g;" \
     -pe "s/import gtk.gdk as gdk\n/from gi.repository import Gdk\n/g;" \
-    -pe "s/Gtk.gdk.x11_/GdkX11\./g;" \
+    -pe "s/Gtk.gdk.x11_/GdkX11.x11_/g;" \
     -pe "s/Gtk.gdk\./Gdk\./g;" \
     -pe "s/(?<!\.)gdk\./Gdk\./g;" \
     -pe "s/Gdk.screen_width/Gdk.Screen.width/g;" \



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