[gnome-sudoku] Use correct name for always-show-hints GSettings key
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sudoku] Use correct name for always-show-hints GSettings key
- Date: Thu, 5 Sep 2013 18:46:29 +0000 (UTC)
commit fbe9a6dfac5a0985ef9a548a693e0231567d5536
Author: Michael Biebl <biebl debian org>
Date: Tue Sep 3 12:12:31 2013 +0200
Use correct name for always-show-hints GSettings key
When gnome-sudoku was converted from GConf to GSettings all keys were
updated to use '-' instead of '_' but the code wasn't updated
accordingly everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=707362
src/lib/main.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lib/main.py b/src/lib/main.py
index a9c6b7a..557e5d3 100644
--- a/src/lib/main.py
+++ b/src/lib/main.py
@@ -531,11 +531,11 @@ class UI:
'''
self.cleared_notes.append((self.tinfo.current_tracker, self.gsd.clear_notes(side)))
# Turn off auto-hint if the player clears the bottom notes
- if side == 'Bottom' and self.settings.get_boolean('always_show_hints'):
+ if side == 'Bottom' and self.settings.get_boolean('always-show-hints'):
always_show_hint_wdgt = self.main_actions.get_action('AlwaysShowPossible')
always_show_hint_wdgt.activate()
# Update the hints...in case we're redoing a clear of them
- if self.settings.get_boolean ('always_show_hints'):
+ if self.settings.get_boolean ('always-show-hints'):
self.gsd.update_all_hints()
def undo_clear_notes(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]