]> git.saurik.com Git - wxWidgets.git/commitdiff
Handle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Aug 2010 22:48:21 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Aug 2010 22:48:21 +0000 (22:48 +0000)
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

index 6696d21c01323bb9c3d9e6f2a1b7db00aae8ad42..754de047c4c2be53aa8e33c61932d9076ff1001d 100644 (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!