diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-09 01:18:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-09 01:18:03 +0200 |
| commit | 22ee15e4c6fb91414997adf1a010b563e5dad6e3 (patch) | |
| tree | d878db7d207a722ea2f71175de5e8a41a0940c84 /src/wx/screens_panel.cc | |
| parent | 1ea8806c7c628cba3cc063200efca10b327356cf (diff) | |
Assorted GTK3 layout tidying in KDM dialogs.
Diffstat (limited to 'src/wx/screens_panel.cc')
| -rw-r--r-- | src/wx/screens_panel.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 8db7a1035..5541d46d4 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -44,8 +44,17 @@ ScreensPanel::ScreensPanel (wxWindow* parent) { wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); - _search = new wxSearchCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize (200, -1)); +#ifdef __WXGTK3__ + int const height = 30; +#else + int const height = -1; +#endif + + _search = new wxSearchCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, height)); +#ifndef __WXGTK3__ + /* The cancel button seems to be strangely broken in GTK3; clicking on it twice sometimes works */ _search->ShowCancelButton (true); +#endif sizer->Add (_search, 0, wxBOTTOM, DCPOMATIC_SIZER_GAP); wxBoxSizer* targets = new wxBoxSizer (wxHORIZONTAL); |
