[gnome-games/applygsoc2009: 11/76] No need to inactivate buttons/menuitems now
- From: Pablo Castellano <pablog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/applygsoc2009: 11/76] No need to inactivate buttons/menuitems now
- Date: Mon, 6 Sep 2010 02:48:09 +0000 (UTC)
commit 3c29ab2cac4c4845803d2ba92b5ca49c1f1fb731
Author: Pablo Castellano <pablog src gnome org>
Date: Thu Aug 26 04:44:13 2010 +0200
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 | 29 -----------------------------
1 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 8249a34..542af09 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -190,35 +190,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/Reset',
- '/MenuBar/Game/PuzzleInfo',
- '/MenuBar/Game/Print',
- # undo/redo is handled elsewhere as it can't simply be turned on/off.
- '/MenuBar/Settings/ToggleToolbar',
- '/MenuBar/Settings/ToggleHighlight',
- '/MenuBar/Settings/AlwaysShowPossible',
- '/MenuBar/Settings/ShowImpossibleImplications',
- '/MenuBar/Tools/ShowPossible',
- '/MenuBar/Tools/ClearTopNotes',
- '/MenuBar/Tools/ClearBottomNotes',
- '/MenuBar/Tools/Tracker']
- for path in in_game_actions:
- action = uimanager.get_action(path)
- if not action:
- action = 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]