gnome-games r9004 - branches/gnome-2-26/gnome-sudoku/src/lib
- From: thomashpa svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r9004 - branches/gnome-2-26/gnome-sudoku/src/lib
- Date: Tue, 7 Apr 2009 00:35:08 +0000 (UTC)
Author: thomashpa
Date: Tue Apr 7 00:35:07 2009
New Revision: 9004
URL: http://svn.gnome.org/viewvc/gnome-games?rev=9004&view=rev
Log:
Only allow one number picker at a time. Bug #530778
Modified:
branches/gnome-2-26/gnome-sudoku/src/lib/gsudoku.py
Modified: branches/gnome-2-26/gnome-sudoku/src/lib/gsudoku.py
==============================================================================
--- branches/gnome-2-26/gnome-sudoku/src/lib/gsudoku.py (original)
+++ branches/gnome-2-26/gnome-sudoku/src/lib/gsudoku.py Tue Apr 7 00:35:07 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]