-bool wxNotebook::SetPageText( int page, const wxString &text )
-{
- wxCHECK_MSG( m_widget != NULL, FALSE, _T("invalid notebook") );
-
- wxNotebookPage* nb_page = GetNotebookPage(page);
-
- if (!nb_page) return FALSE;
-
- nb_page->m_text = text;
-
- if (nb_page->m_text.IsEmpty()) nb_page->m_text = _T("");
-
- gtk_label_set(nb_page->m_label, nb_page->m_text.mbc_str());
-
- return TRUE;
-}
-
-bool wxNotebook::SetPageImage( int page, int image )
-{
- /* HvdH 28-12-98: now it works, but it's a bit of a kludge */
-
- wxNotebookPage* nb_page = GetNotebookPage(page);
-
- if (!nb_page) return FALSE;
-
- /* Optimization posibility: return immediately if image unchanged.
- * Not enabled because it may break existing (stupid) code that
- * manipulates the imagelist to cycle images */
-
- /* if (image == nb_page->m_image) return TRUE; */
-
- /* For different cases:
- 1) no image -> no image
- 2) image -> no image
- 3) no image -> image
- 4) image -> image */
-
- if (image == -1 && nb_page->m_image == -1)
- return TRUE; /* Case 1): Nothing to do. */
-
- GtkWidget *pixmapwid = (GtkWidget*) NULL;
-
- if (nb_page->m_image != -1)