// 3) set for each page it's image
// associate image list with a control
void SetImageList(wxImageList* imageList);
+ void AssignImageList(wxImageList* imageList);
// get pointer (may be NULL) to the associated image list
wxImageList *GetImageList() const { return m_imageList; }
wxGtkNotebookPage* GetNotebookPage(int page) const;
wxImageList* m_imageList;
+ bool m_ownsImageList;
wxList m_pages;
- int m_lastSelection; /* hack */
+
+ // for reasons explained in gtk/notebook.cpp we store the current
+ // selection internally instead of querying the notebook for it
+ int m_selection;
private:
DECLARE_DYNAMIC_CLASS(wxNotebook)