OSDN Git Service

fix TransparentWindow regression
authorShyouzou Sugitani <shy@users.sourceforge.jp>
Sat, 16 Feb 2013 02:51:43 +0000 (11:51 +0900)
committerShyouzou Sugitani <shy@users.sourceforge.jp>
Sat, 16 Feb 2013 02:51:43 +0000 (11:51 +0900)
ChangeLog
lib/ninix/pix.py

index 4dcc920..6110fea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat February 16 2013   Shyouzou Sugitani <shy@users.sourceforge.jp>
+       * TransparentWindowクラスの描画方法を変更した際に, サイズ変更後の
+         ウインドウの移動処理を削ってしまっていたのを戻した.
+         (リビジョン114f4bf202008297488b64a52ea571054f3c914dのコミットで
+          発生したregressionの修正.)
+
 Fri February 15 2013   Shyouzou Sugitani <shy@users.sourceforge.jp>
        * surfaces.txtのdescriptスコープからSERIKOのバージョン情報を
          読み取って使用するようにした.
index 60be21c..4caa897 100644 (file)
@@ -43,6 +43,7 @@ class TransparentWindow(Gtk.Window):
         self.__child = None
         self.__child_size = (-1, -1)
         self.__position = (0, 0)
+        self.connect_after('size_allocate', self.size_allocate)
 
     @property
     def fixed(self): # read only
@@ -81,6 +82,10 @@ class TransparentWindow(Gtk.Window):
         assert visual is not None
         self.set_visual(visual)
 
+    def size_allocate(self, widget, event):
+        new_x, new_y = self.__position
+        Gtk.Window.move(self, new_x, new_y)
+
     def reset_truncate(self):
         self.fixed.move(self.__child, 0, 0)
         self.__child.set_size_request(*self.__child_size)