From 5a607f8b231e8121cd0c3543e14ce22b08638a07 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 18 Aug 2010 22:48:21 +0000 Subject: [PATCH] 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 --- src/gtk/collpane.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index 6696d21c01..754de047c4 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -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! -- 2.45.2