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



commit 5d66a791be6de06404e4917de965aa14cc5c3ecb
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Jan 31 06:33:44 2016 +1000

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

 meld/diffgrid.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/diffgrid.py b/meld/diffgrid.py
index 8495741..eef687e 100644
--- a/meld/diffgrid.py
+++ b/meld/diffgrid.py
@@ -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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]