Added Set/GetThemeEnabled and used this for determining whether to paint a theme
background. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -216,6 +216,7 @@ void wxNotebook::Init()
|
||||
m_imageList = (wxImageList *) NULL;
|
||||
m_pages.DeleteContents( TRUE );
|
||||
m_lastSelection = -1;
|
||||
m_themeEnabled = TRUE;
|
||||
}
|
||||
|
||||
wxNotebook::wxNotebook()
|
||||
@@ -561,6 +562,9 @@ bool wxNotebook::InsertPage( int position, wxNotebookPage* win, const wxString&
|
||||
gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
|
||||
GTK_SIGNAL_FUNC(gtk_notebook_page_change_callback), (gpointer) this );
|
||||
|
||||
if (m_themeEnabled)
|
||||
win->SetThemeEnabled(TRUE);
|
||||
|
||||
GtkNotebook *notebook = GTK_NOTEBOOK(m_widget);
|
||||
|
||||
wxGtkNotebookPage *page = new wxGtkNotebookPage();
|
||||
|
Reference in New Issue
Block a user