Commit 5d66a791 authored by Kai Willadsen's avatar Kai Willadsen

diffgrid: Get the state directly from the style context for GTK+ 3.20

parent 5b0d31d2
......@@ -315,7 +315,7 @@ class HandleWindow():
return
stylecontext = self._widget.get_style_context()
state = self._widget.get_state_flags()
state = stylecontext.get_state()
if self._widget.is_focus():
state |= Gtk.StateFlags.SELECTED
if self._prelit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment