]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/infobar.cpp
speeding up rectangle drawing by using specific methods, needs 40% less time
[wxWidgets.git] / src / gtk / infobar.cpp
index e386a95f963a3aac9339b8c65e247653ff779adf..f6ceee09dbb2fab582506309be14e7c90c700cc6 100644 (file)
@@ -209,9 +209,9 @@ GtkWidget *wxInfoBar::GTKAddButton(wxWindowID btnid, const wxString& label)
     GtkWidget *button = gtk_info_bar_add_button
                         (
                             GTK_INFO_BAR(m_widget),
-                            label.empty()
+                            (label.empty()
                                 ? GTKConvertMnemonics(wxGetStockGtkID(btnid))
-                                : label,
+                                : label).utf8_str(),
                             btnid
                         );