Applied patch [ 838940 ] notebook labels are not shown when built with GTK2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-01-11 20:58:10 +00:00
parent bfe5de8665
commit 73e68c1d43
2 changed files with 2 additions and 2 deletions

View File

@ -649,7 +649,7 @@ bool wxNotebook::InsertPage( size_t position,
nb_page->m_text = text; nb_page->m_text = text;
if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT(""); 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 ); gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
/* show the label */ /* show the label */

View File

@ -649,7 +649,7 @@ bool wxNotebook::InsertPage( size_t position,
nb_page->m_text = text; nb_page->m_text = text;
if (nb_page->m_text.IsEmpty()) nb_page->m_text = wxT(""); 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 ); gtk_box_pack_end( GTK_BOX(nb_page->m_box), GTK_WIDGET(nb_page->m_label), FALSE, FALSE, m_padding );
/* show the label */ /* show the label */