6353: Fix error when setting colours

svn: r21164
This commit is contained in:
Nick Hall 2013-01-18 18:25:06 +00:00
parent c56fb05d1c
commit b7d5bed60a

View File

@ -1062,10 +1062,11 @@ class MaskedEntry(UndoableEntry):
self.override_background_color(Gtk.StateFlags.NORMAL | self.override_background_color(Gtk.StateFlags.NORMAL |
Gtk.StateFlags.ACTIVE | Gtk.StateFlags.SELECTED | Gtk.StateFlags.ACTIVE | Gtk.StateFlags.SELECTED |
Gtk.StateFlags.FOCUSED, None) Gtk.StateFlags.FOCUSED, None)
self.override_symbolic_color('bg_color', None) # Setting the following to None causes an error (bug #6353).
self.override_symbolic_color('base_color', None) #self.override_symbolic_color('bg_color', None)
self.override_symbolic_color('theme_bg_color', None) #self.override_symbolic_color('base_color', None)
self.override_symbolic_color('theme_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() pango_context = self.get_layout().get_context()
font_description = pango_context.get_font_description() font_description = pango_context.get_font_description()
font_description.set_weight(Pango.Weight.NORMAL) font_description.set_weight(Pango.Weight.NORMAL)