X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f5dc9aad36e84212fd43519df67b814337ab051..0538419f9e7d1fd4af57f2f4e38c339cd091b0c5:/src/gtk/collpane.cpp diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index 6696d21c01..1d7817bcdb 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -204,7 +204,7 @@ bool wxCollapsiblePane::Create(wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(size); - + // we should blend into our parent background const wxColour bg = parent->GetBackgroundColour(); SetBackgroundColour(bg); @@ -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! @@ -284,7 +285,7 @@ GdkWindow *wxCollapsiblePane::GTKGetWindow(wxArrayGdkWindows& windows) const windows.Add( m_widget->window ); return NULL; -} +} #endif // wxUSE_COLLPANE && !defined(__WXUNIVERSAL__)