Handle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().
Convert mnemonics in wx format to the one used by GTK+, just as we already do in the ctor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -249,7 +249,8 @@ bool wxCollapsiblePane::IsCollapsed() const
|
|||||||
|
|
||||||
void wxCollapsiblePane::SetLabel(const wxString &str)
|
void wxCollapsiblePane::SetLabel(const wxString &str)
|
||||||
{
|
{
|
||||||
gtk_expander_set_label(GTK_EXPANDER(m_widget), wxGTK_CONV(str));
|
gtk_expander_set_label(GTK_EXPANDER(m_widget),
|
||||||
|
wxGTK_CONV(GTKConvertMnemonics(str)));
|
||||||
|
|
||||||
// FIXME: we need to update our collapsed width in some way but using GetBestSize()
|
// FIXME: we need to update our collapsed width in some way but using GetBestSize()
|
||||||
// we may get the size of the control with the pane size summed up if we are expanded!
|
// we may get the size of the control with the pane size summed up if we are expanded!
|
||||||
|
Reference in New Issue
Block a user