[gnome-games/gnome-3-0] soduku: gi port, hack around gdk_window_get_origin change



commit 6b3a93d136c41036a0d8e8fbb2436616ce2d1feb
Author: John Stowers <john stowers gmail com>
Date:   Sat Apr 30 01:16:14 2011 +1200

    soduku: gi port, hack around gdk_window_get_origin change

 gnome-sudoku/src/lib/number_box.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index 0fc3edf..f24c5ac 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -329,13 +329,12 @@ class NumberBox (Gtk.DrawingArea):
         ns.connect('changed', self.number_changed_cb)
         w.grab_focus()
         w.add(ns)
-        r = w.get_allocation()
         my_origin = self.get_window().get_origin()
         x, y = (self.get_allocated_width(), self.get_allocated_height())
         popupx, popupy = w.get_size()
         overlapx = popupx-x
         overlapy = popupy-y
-        w.move(my_origin[0]-(overlapx/2), my_origin[1]-(overlapy/2))
+        w.move(my_origin[1]-(overlapx/2), my_origin[2]-(overlapy/2))
         w.show()
         self.npicker = w
 



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