Partial fix for wxSearchCtrl mouse enter/leave events
The events only occur for part of the widget area, but it's better than the previous nothing. See #24245
This commit is contained in:
parent
82cb7d1074
commit
d8c5a87fe3
2 changed files with 12 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ private:
|
|||
#endif // wxUSE_MENUS/!wxUSE_MENUS
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual GdkWindow* GTKGetWindow(wxArrayGdkWindows& windows) const override;
|
||||
|
||||
private:
|
||||
virtual GtkEntry *GetEntry() const override
|
||||
{ return m_entry; }
|
||||
|
|
|
|||
|
|
@ -359,4 +359,13 @@ void wxSearchCtrl::PopupSearchMenu()
|
|||
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
GdkWindow* wxSearchCtrl::GTKGetWindow(wxArrayGdkWindows& windows) const
|
||||
{
|
||||
#ifdef __WXGTK3__
|
||||
GTKFindWindow(m_widget, windows);
|
||||
return nullptr;
|
||||
#else
|
||||
return gtk_entry_get_text_window(GTK_ENTRY(m_widget));
|
||||
#endif
|
||||
}
|
||||
#endif // wxUSE_SEARCHCTRL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue