From abcd1812df710b3332a99ed06892dad78f5454b7 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 6 Mar 2004 13:10:32 +0000 Subject: [PATCH] Small patch for notenbook encoding. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@26117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/notebook.cpp | 2 +- src/gtk1/notebook.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index a5f5e6d40f..586ab767f4 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -643,7 +643,7 @@ bool wxNotebook::InsertPage( int position, nb_page->m_text = text; if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT(""); - nb_page->m_label = GTK_LABEL( gtk_label_new(nb_page->m_text.mbc_str()) ); + nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) ); gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding ); /* show the label */ diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index a5f5e6d40f..586ab767f4 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -643,7 +643,7 @@ bool wxNotebook::InsertPage( int position, nb_page->m_text = text; if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT(""); - nb_page->m_label = GTK_LABEL( gtk_label_new(nb_page->m_text.mbc_str()) ); + nb_page->m_label = GTK_LABEL( gtk_label_new(wxGTK_CONV(nb_page->m_text)) ); gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding ); /* show the label */