X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c077ee943391930e0a7550f7ce810cb72a6d5820..c156411a0886a4b49a0c30c36153fb3c1edd4b51:/src/gtk/notebook.cpp diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index ef02dbb756..ded15fb845 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -365,15 +365,13 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id, gtk_signal_connect( GTK_OBJECT(m_widget), "key_press_event", GTK_SIGNAL_FUNC(gtk_notebook_key_press_callback), (gpointer)this ); - PostCreation(); + PostCreation(size); SetFont( parent->GetFont() ); gtk_signal_connect( GTK_OBJECT(m_widget), "realize", GTK_SIGNAL_FUNC(gtk_notebook_realized_callback), (gpointer) this ); - Show( TRUE ); - return TRUE; } @@ -868,6 +866,13 @@ bool wxNotebook::SetFont(const wxFont& font) return rc; } +// static +wxVisualAttributes +wxNotebook::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) +{ + return GetDefaultAttributesFromGTKWidget(gtk_notebook_new); +} + //----------------------------------------------------------------------------- // wxNotebookEvent //-----------------------------------------------------------------------------