Replace deprecated get_background_color()

This commit is contained in:
Philipp Hörist 2017-12-18 00:25:19 +01:00
parent bdf16c5182
commit c18ef648e6
1 changed files with 2 additions and 1 deletions

View File

@ -398,7 +398,8 @@ def get_fade_color(treeview, selected, focused):
state = Gtk.StateFlags.ACTIVE state = Gtk.StateFlags.ACTIVE
else: else:
state = Gtk.StateFlags.NORMAL state = Gtk.StateFlags.NORMAL
bg = context.get_background_color(state)
bg = context.get_property('background-color', state)
fg = context.get_color(state) fg = context.get_color(state)
p = 0.3 # background p = 0.3 # background