summaryrefslogtreecommitdiff
path: root/src/wx/screens_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-01 22:40:57 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-09 17:04:02 +0100
commit11199da66bafc54cfab92106563696d9a5e72b69 (patch)
tree211a977b3891f0d459ff34aca4a87d336677949c /src/wx/screens_panel.cc
parente839d43989c0d2a9438612ec289a4834df06f712 (diff)
Add search_ctrl_height()
Diffstat (limited to 'src/wx/screens_panel.cc')
-rw-r--r--src/wx/screens_panel.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc
index 0038a30fb..c5aea4223 100644
--- a/src/wx/screens_panel.cc
+++ b/src/wx/screens_panel.cc
@@ -47,13 +47,7 @@ ScreensPanel::ScreensPanel (wxWindow* parent)
{
auto sizer = new wxBoxSizer (wxVERTICAL);
-#ifdef __WXGTK3__
- int const height = 30;
-#else
- int const height = -1;
-#endif
-
- _search = new wxSearchCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, height));
+ _search = new wxSearchCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, search_ctrl_height()));
#ifndef __WXGTK3__
/* The cancel button seems to be strangely broken in GTK3; clicking on it twice sometimes works */
_search->ShowCancelButton (true);