X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f7bcb48fd9a642036a3bf5c70e2b0c9576df1b1..9ca7505f1243ed1d2a2012caa09a52d41115c069:/src/gtk1/button.cpp diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index d411a22eda..435358d25f 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -209,10 +209,8 @@ void wxButton::SetLabel( const wxString &lbl ) wxString label(lbl); -#ifndef __WXGTK20__ if (label.empty() && wxIsStockID(m_windowId)) label = wxGetStockLabel(m_windowId); -#endif wxControl::SetLabel(label); @@ -224,8 +222,8 @@ void wxButton::SetLabel( const wxString &lbl ) { gtk_button_set_label(GTK_BUTTON(m_widget), stock); gtk_button_set_use_stock(GTK_BUTTON(m_widget), TRUE); + return; } - return; } wxString label2 = PrepareLabelMnemonics(label);