[gnome-games] soduku: gi port, hack around gdk_window_get_origin change
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] soduku: gi port, hack around gdk_window_get_origin change
- Date: Fri, 29 Apr 2011 13:16:26 +0000 (UTC)
commit f7847300a778548fcc963c6e4750ab78cf367b84
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]