[gnome-games/sudoku-tube] Useless if-else
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] Useless if-else
- Date: Wed, 15 Jul 2009 02:40:53 +0000 (UTC)
commit b7fb33dc4f4fb0cc42190716d7ac7b473929e09a
Author: Zhang Sen <zh jesse gmail com>
Date: Tue Jul 14 15:16:11 2009 +0800
Useless if-else
gnome-sudoku/src/lib/main.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 46b9e8a..8670b52 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -529,10 +529,7 @@ class UI (gconf_wrapper.GConfWrapper):
return True
def toggle_highlight_cb (self, widg):
- if widg.get_active():
- self._main_grid_vew.toggle_highlight(True)
- else:
- self._main_grid_vew.toggle_highlight(False)
+ self._main_grid_vew.toggle_highlight(widg.get_active())
def show_info_cb (self, *args):
if not self.gsd.grid:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]