Remove dead code in get_foreground_color().
This commit is contained in:
parent
69e242184c
commit
8d0bfce460
|
@ -403,8 +403,6 @@ def get_foreground_color(state=Gtk.StateFlags.NORMAL, widget=Gtk.TreeView()):
|
|||
"""
|
||||
p = widget
|
||||
color = Gdk.RGBA(0, 0, 0, 0)
|
||||
style_context = widget.get_style_context()
|
||||
foreground = style_context.get_color(state)
|
||||
while p is not None and color.alpha == 0:
|
||||
style_context = p.get_style_context()
|
||||
color = style_context.get_color(state)
|
||||
|
|
Loading…
Reference in New Issue