chiark / gitweb /
Fix puzzle window resize behaviour on Unity.
authorSimon Tatham <anakin@pobox.com>
Sun, 4 Jan 2015 18:03:36 +0000 (18:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 4 Jan 2015 18:11:28 +0000 (18:11 +0000)
commit8f8333a3516bbbd266d66e72f646741fc258ff02
tree7b9c90c5d978b9d8162c2d7235596b4c3abb2aee
parent79874f18e41cbbe796c0252dc96a85e150af1a15
Fix puzzle window resize behaviour on Unity.

Unity hijacks the menu bar and prevents it from appearing in the main
puzzle window. And we wait for the menu bar to appear before reducing
the puzzle drawing area's size request. These two behaviours go
together badly.

Fixed by detecting the extra GTK property that the Unity patches
invented, and using that to know whether to expect the menu bar to
show up at all.
gtk.c