X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93d381756808d466a91e844d4ed10600a87c7a32..ada8f807758339fe6a80070fe0935d87496dbe57:/include/wx/gtk/notebook.h diff --git a/include/wx/gtk/notebook.h b/include/wx/gtk/notebook.h index ef09df8f89..45d6eecfbf 100644 --- a/include/wx/gtk/notebook.h +++ b/include/wx/gtk/notebook.h @@ -89,6 +89,7 @@ public: // 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; } @@ -157,8 +158,12 @@ public: 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)