[gnome-games/sudoku-tube] No need to inactivate buttons/menuitems now
- From: Zhang Sen <zhangsen src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/sudoku-tube] No need to inactivate buttons/menuitems now
- Date: Fri, 29 May 2009 05:54:39 -0400 (EDT)
commit e85eff9a5fd467d89a9b828cc8cf067993f2248d
Author: Zhang Sen <zh jesse gmail com>
Date: Fri May 29 17:53:18 2009 +0800
No need to inactivate buttons/menuitems now
Don't have to do this activate/inactivate since the swallower has gone.
---
gnome-sudoku/src/lib/main.py | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index b73c483..e055d16 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -205,34 +205,6 @@ class UI (gconf_wrapper.GConfWrapper):
saver.open_game(self, choice[1])
self._post_open_setup()
- def _activate_in_game_actions (self, sensitive):
- """Inactivate some actions if we are in game-selector
-
- Some actions should only be active during a game, and be disabled when
- we are choosing game. We call them 'in-game actions'."""
- in_game_actions = [
- '/MenuBar/Game/New',
- '/MenuBar/Game/NewWithContact',
- '/MenuBar/Game/Print',
- '/MenuBar/Edit/Clear',
- '/MenuBar/Edit/ClearNotes',
- '/MenuBar/View/ToggleToolbar',
- '/MenuBar/Tools/ShowPossible',
- '/MenuBar/Tools/AutofillCurrentSquare',
- '/MenuBar/Tools/Autofill',
- '/MenuBar/Tools/AlwaysShowPossible',
- '/MenuBar/Tools/ShowImpossibleImplications',
- '/MenuBar/Tools/Tracker',
- '/MenuBar/Game/PuzzleInfo']
- for path in in_game_actions:
- action = self.uimanager.get_action(path)
- if not action:
- action = self.uimanager.get_widget(path)
- if action:
- action.set_sensitive(sensitive)
- else:
- print 'No action at path', path
-
def show (self):
self.gsd.show()
self.w.show()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]