Don't get properties of a non-current style state to please GTK 3.20
commitf948916ad07d08bdb4ede16b7ea733ff3d12ea55
authorColomban Wendling <ban@herbesfolles.org>
Mon, 2 May 2016 21:38:21 +0000 (2 23:38 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 2 May 2016 22:31:38 +0000 (3 00:31 +0200)
tree2ce4be65591935820c5c35ee9210f27a116256e7
parent75063e9159bbc582e4d41b91bc187a040021e6d5
Don't get properties of a non-current style state to please GTK 3.20

GTK 3.20 doesn't like getting a style property for a non-current state,
unless the call is wrapped in a save()/restore() pair.

So, fix the code to either use the current state or temporarily save
the context.

gb.c now uses different states, but it shouldn't really matter given
how they are used, and even gives a native behavior when the window
loses focus, as it now properly reacts to BACKDROP state.
src/build.c
src/document.c
src/gb.c