[gnome-games/gnome-3-0] sudoku: Fix setting numbers using keyboard
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-3-0] sudoku: Fix setting numbers using keyboard
- Date: Fri, 20 May 2011 21:17:12 +0000 (UTC)
commit 6e583bb58057462e7ea4c2c39e9208833942f494
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Mon May 2 22:49:03 2011 +0200
sudoku: Fix setting numbers using keyboard
gnome-sudoku/src/lib/number_box.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index 6f20036..8a0eeaa 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -221,7 +221,7 @@ class NumberBox (Gtk.DrawingArea):
# Add the new value if need be
if txt in [str(n) for n in range(1, self.upper+1)]:
- if e.state & Gdk.EventMask.CONTROL_MASK:
+ if e.state & Gdk.ModifierType.CONTROL_MASK:
self.add_note_text(txt, top = True)
elif e.state & Gdk.ModifierType.MOD1_MASK:
self.remove_note_text(txt, top = True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]