[meld] Fix sourceview-specific preference sensitivity (closes bgo#612144)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix sourceview-specific preference sensitivity (closes bgo#612144)
- Date: Fri, 25 Jun 2010 08:02:49 +0000 (UTC)
commit 6d8ed4bf16858309757333a3e681130866284dea
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Jun 25 15:38:43 2010 +1000
Fix sourceview-specific preference sensitivity (closes bgo#612144)
Previous changes to make sourceviewer.nullsourceview a no-op API broke
our check for the presence of a sourceviewer module. This commit fixes
this by checking to see whether the sourceviewer in use is actually
backed by an imported module.
meld/preferences.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/preferences.py b/meld/preferences.py
index bc32feb..3652b09 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -131,7 +131,7 @@ class PreferencesDialog(gnomeglade.Component):
self.fontpicker.set_font_name(self.prefs.custom_font)
self.fontpicker.set_font_name( self.prefs.custom_font )
self.spinbutton_tabsize.set_value( self.prefs.tab_size )
- if srcviewer:
+ if srcviewer.gsv is not None:
self.checkbutton_spaces_instead_of_tabs.set_active( self.prefs.spaces_instead_of_tabs )
self.checkbutton_show_line_numbers.set_active( self.prefs.show_line_numbers )
self.checkbutton_use_syntax_highlighting.set_active( self.prefs.use_syntax_highlighting )
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]