[Xword-commits] r27 - trunk/root/usr/bin
terrencegf at garage.maemo.org
terrencegf at garage.maemo.org
Tue Apr 22 05:22:48 EEST 2008
Author: terrencegf
Date: 2008-04-22 05:22:36 +0300 (Tue, 22 Apr 2008)
New Revision: 27
Modified:
trunk/root/usr/bin/xword
Log:
Fixed a bug when a previous .puz file is missing. It tried to open the last
file without checking for its existence. Also made the MIN_BOX_SIZE jut a
little bigger.
Modified: trunk/root/usr/bin/xword
===================================================================
--- trunk/root/usr/bin/xword 2008-04-22 01:56:23 UTC (rev 26)
+++ trunk/root/usr/bin/xword 2008-04-22 02:22:36 UTC (rev 27)
@@ -68,7 +68,7 @@
TIMER_ICON = HOME_PATH + '/crossword-clock.png'
ABOUT_ICON = HOME_PATH + '/xword-logo2.png'
-MIN_BOX_SIZE = 18
+MIN_BOX_SIZE = 20
ACROSS = 0
DOWN = 1
@@ -1269,7 +1269,8 @@
self.control.signal()
self.puzzle_widget.area.grab_focus()
- if self.last_file: self.do_open_file(self.last_file)
+ if self.last_file and os.path.exists(self.last_file):
+ self.do_open_file(self.last_file)
def enable_controls(self, enabled):
def enable(w): w.set_property('sensitive', enabled)
More information about the Xword-commits
mailing list