+bool wxNotebook::SetPageImage( size_t page, int image )
+{
+ wxCHECK_MSG(page < GetPageCount(), false, "invalid notebook index");
+
+ wxGtkNotebookPage* pageData = GetNotebookPage(page);
+ if (image >= 0)
+ {
+ wxCHECK_MSG(m_imageList, false, "invalid notebook imagelist");
+ const wxBitmap* bitmap = m_imageList->GetBitmapPtr(image);
+ if (bitmap == NULL)
+ return false;
+ if (pageData->m_image)
+ {
+ gtk_image_set_from_pixbuf(
+ GTK_IMAGE(pageData->m_image), bitmap->GetPixbuf());
+ }
+ else
+ {
+ pageData->m_image = gtk_image_new_from_pixbuf(bitmap->GetPixbuf());
+ gtk_widget_show(pageData->m_image);
+ gtk_box_pack_start(GTK_BOX(pageData->m_box),
+ pageData->m_image, false, false, m_padding);
+ }
+ }
+ else if (pageData->m_image)