- wxGtkNotebookPage* 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)