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:
Vadim Zeitlin
2010-08-18 22:48:21 +00:00
parent 2afba7c46c
commit 5a607f8b23

View File

@@ -249,7 +249,8 @@ bool wxCollapsiblePane::IsCollapsed() const
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()
// we may get the size of the control with the pane size summed up if we are expanded!