[gedit-latex] Fix color preferences
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Fix color preferences
- Date: Sun, 26 Jun 2011 11:24:45 +0000 (UTC)
commit d30184715d154e72d4b45f4b53fbd869ea545221
Author: John Stowers <john stowers gmail com>
Date: Sun Jun 26 16:37:36 2011 +1200
Fix color preferences
latex/preferences/dialog.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/latex/preferences/dialog.py b/latex/preferences/dialog.py
index cc58b3b..0097900 100644
--- a/latex/preferences/dialog.py
+++ b/latex/preferences/dialog.py
@@ -72,7 +72,9 @@ class PreferencesColorProxy(object):
self._preferences = Preferences()
# init value
- #self._widget.set_color(Gdk.color_parse(self._preferences.get(key, default_value)))
+ ok, color = Gdk.color_parse(self._preferences.get(key, default_value))
+ if ok:
+ self._widget.set_color(color)
# listen to change
self._widget.connect("color-set", self._on_color_set)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]