gnome-games r8912 - trunk/gnome-sudoku/src/lib
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8912 - trunk/gnome-sudoku/src/lib
- Date: Sat, 28 Mar 2009 03:15:45 +0000 (UTC)
Author: thomashpa
Date: Sat Mar 28 03:15:44 2009
New Revision: 8912
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8912&view=rev
Log:
Only allow one number picker at a time. Fixes a crasher with stray number pickers. Bug #530778
Modified:
trunk/gnome-sudoku/src/lib/gsudoku.py
Modified: trunk/gnome-sudoku/src/lib/gsudoku.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/gsudoku.py (original)
+++ trunk/gnome-sudoku/src/lib/gsudoku.py Sat Mar 28 03:15:44 2009
@@ -192,7 +192,7 @@
self.draw_boxes = False
self.queue_draw()
- def button_press_cb (self, w, e):
+ def button_press_cb (self, w, e):
if self.read_only: return
if e.type == gtk.gdk._2BUTTON_PRESS:
# ignore second click (this makes a double click in the
@@ -232,6 +232,9 @@
self.show_note_editor(top=False)
else:
# In this case we're a normal old click...
+ if hasattr(self,'npicker') and self.npicker:
+ self.npicker.destroy()
+ self.npicker = None
self.show_number_picker()
else:
self.grab_focus()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]