X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Frecipients_panel.cc;fp=src%2Fwx%2Frecipients_panel.cc;h=8bb78750e83e4afd208088dc1ae6da0f9c438752;hb=22ee15e4c6fb91414997adf1a010b563e5dad6e3;hp=e4559742fe0ad330d9ecd75e149ce1494dfcabf1;hpb=1ea8806c7c628cba3cc063200efca10b327356cf;p=dcpomatic.git diff --git a/src/wx/recipients_panel.cc b/src/wx/recipients_panel.cc index e4559742f..8bb78750e 100644 --- a/src/wx/recipients_panel.cc +++ b/src/wx/recipients_panel.cc @@ -43,8 +43,17 @@ RecipientsPanel::RecipientsPanel (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);