]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxGTK_CONV to fix compile error when building in Unicode mode
authorRobin Dunn <robin@alldunn.com>
Mon, 23 Oct 2006 19:20:52 +0000 (19:20 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 23 Oct 2006 19:20:52 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/collpane.cpp

index edd737d066fab27151d30cdf19bbddcdc2350297..cd744aa00c62bf9b30ff1bdb0c55a4ea66700de8 100644 (file)
@@ -206,7 +206,7 @@ bool wxCollapsiblePane::IsCollapsed() const
 void wxCollapsiblePane::SetLabel(const wxString &str)
 {
     if (!gtk_check_version(2,4,0))
-        gtk_expander_set_label(GTK_EXPANDER(m_widget), str.c_str());
+        gtk_expander_set_label(GTK_EXPANDER(m_widget), wxGTK_CONV(str));
     else
         wxGenericCollapsiblePane::SetLabel(str);
 }