Fix style name bug in style editor

This commit is contained in:
Nick Hall 2015-08-01 19:41:53 +01:00
parent 0f0763f86d
commit 82447881a5

View File

@ -231,9 +231,9 @@ class StyleEditor(object):
self.plist = ListModel(self.top.get_object("ptree"), titles, self.plist = ListModel(self.top.get_object("ptree"), titles,
self.change_display) self.change_display)
for name in ('color', 'bgcolor', 'line_color', 'fill_color'): for widget_name in ('color', 'bgcolor', 'line_color', 'fill_color'):
color = self.top.get_object(name) color = self.top.get_object(widget_name)
label = self.top.get_object(name + '_code') label = self.top.get_object(widget_name + '_code')
color.connect('notify::color', self.color_changed, label) color.connect('notify::color', self.color_changed, label)
self.top.get_object("style_name").set_text(name) self.top.get_object("style_name").set_text(name)