From 1280032d6cb73a9c48fad0ecc23fbba92134fb42 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 15 Aug 1998 21:05:06 +0000 Subject: [PATCH] '&' are removed from checkbox labels (all controls should call wxControl::SetLabel and use m_label which contains the label without '&') git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/checkbox.cpp | 2 +- src/gtk1/checkbox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index f42ef1867d..036a1dbcde 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -56,7 +56,7 @@ bool wxCheckBox::Create( wxWindow *parent, wxWindowID id, const wxString &label SetLabel( label ); - m_widget = gtk_check_button_new_with_label( label ); + m_widget = gtk_check_button_new_with_label( m_label ); wxSize newSize = size; if (newSize.x == -1) newSize.x = 25+gdk_string_measure( m_widget->style->font, label ); diff --git a/src/gtk1/checkbox.cpp b/src/gtk1/checkbox.cpp index f42ef1867d..036a1dbcde 100644 --- a/src/gtk1/checkbox.cpp +++ b/src/gtk1/checkbox.cpp @@ -56,7 +56,7 @@ bool wxCheckBox::Create( wxWindow *parent, wxWindowID id, const wxString &label SetLabel( label ); - m_widget = gtk_check_button_new_with_label( label ); + m_widget = gtk_check_button_new_with_label( m_label ); wxSize newSize = size; if (newSize.x == -1) newSize.x = 25+gdk_string_measure( m_widget->style->font, label ); -- 2.45.2