GTK: Fix auto-completion popup sizing code for GTK 3.20
commitabf0365e43156be12cc0a03b0a5fb6325039b6f0
authorColomban Wendling <ban@herbesfolles.org>
Wed, 27 Apr 2016 14:01:17 +0000 (27 16:01 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 2 May 2016 13:19:26 +0000 (2 15:19 +0200)
tree15f9801751f53dd3adc30b1c4fdc5b22def032cd
parent2723727ecdcc124f87f914ffe1018e4eb6d044a3
GTK: Fix auto-completion popup sizing code for GTK 3.20

GTK 3.20's GtkScrolledWinodw doesn't like having a too small allocation
and spews scary assertion failures.  Fix that by requesting the real
size we'd like instead of hard-coding 1 as small-enough value in our
overriding height requisition method.

The actual value doesn't really matter so long as it's small enough
anyway, as we resize the popup to fit later on.

Note: this moves the actual implementation of ListBoxX::GetRowHeight()
to the new convenience function treeViewGetRowHeight(), with no changes
in implementation.

X-Scintilla-Bug-URL: https://sourceforge.net/p/scintilla/bugs/1825/
X-Scintilla-Commit-ID: 5a0afdd87d56d837dd8068e234aed8e2b6bdbe93
scintilla/gtk/PlatGTK.cxx