Replace deprecated get_background_color()
This commit is contained in:
parent
bdf16c5182
commit
c18ef648e6
|
@ -398,7 +398,8 @@ def get_fade_color(treeview, selected, focused):
|
|||
state = Gtk.StateFlags.ACTIVE
|
||||
else:
|
||||
state = Gtk.StateFlags.NORMAL
|
||||
bg = context.get_background_color(state)
|
||||
|
||||
bg = context.get_property('background-color', state)
|
||||
fg = context.get_color(state)
|
||||
|
||||
p = 0.3 # background
|
||||
|
|
Loading…
Reference in New Issue