From b7d5bed60a6e9ccafb14509c912efda2e3b55709 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 18 Jan 2013 18:25:06 +0000 Subject: [PATCH] 6353: Fix error when setting colours svn: r21164 --- gramps/gui/widgets/validatedmaskedentry.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gramps/gui/widgets/validatedmaskedentry.py b/gramps/gui/widgets/validatedmaskedentry.py index e22d6518d..3788f894c 100644 --- a/gramps/gui/widgets/validatedmaskedentry.py +++ b/gramps/gui/widgets/validatedmaskedentry.py @@ -1062,10 +1062,11 @@ class MaskedEntry(UndoableEntry): self.override_background_color(Gtk.StateFlags.NORMAL | Gtk.StateFlags.ACTIVE | Gtk.StateFlags.SELECTED | Gtk.StateFlags.FOCUSED, None) - self.override_symbolic_color('bg_color', None) - self.override_symbolic_color('base_color', None) - self.override_symbolic_color('theme_bg_color', None) - self.override_symbolic_color('theme_base_color', None) + # Setting the following to None causes an error (bug #6353). + #self.override_symbolic_color('bg_color', None) + #self.override_symbolic_color('base_color', None) + #self.override_symbolic_color('theme_bg_color', None) + #self.override_symbolic_color('theme_base_color', None) pango_context = self.get_layout().get_context() font_description = pango_context.get_font_description() font_description.set_weight(Pango.Weight.NORMAL)