Compilation fix for wxUSE_STL build: another missing _str().

Use utf8_str() to convert wxString to GTK+ string instead of relying on
implicit conversion which doesn't exist when wxUSE_STL==1 (and also when using
wchar_t-based Unicode build).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-19 01:36:54 +00:00
parent 3ac2b89b89
commit c7193f2821

View File

@@ -209,9 +209,9 @@ GtkWidget *wxInfoBar::GTKAddButton(wxWindowID btnid, const wxString& label)
GtkWidget *button = gtk_info_bar_add_button GtkWidget *button = gtk_info_bar_add_button
( (
GTK_INFO_BAR(m_widget), GTK_INFO_BAR(m_widget),
label.empty() (label.empty()
? GTKConvertMnemonics(wxGetStockGtkID(btnid)) ? GTKConvertMnemonics(wxGetStockGtkID(btnid))
: label, : label).utf8_str(),
btnid btnid
); );