]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/notebook.cpp
items without children couldn't be expanded even after a call to
[wxWidgets.git] / src / gtk1 / notebook.cpp
index f318ba6d2ca771f5943815ab790e2b0903f11741..ec2257fb24ec0ec567898ce25e59b9aa7854cc1a 100644 (file)
@@ -456,23 +456,9 @@ bool wxNotebook::DoPhase( int WXUNUSED(nPhase) )
   return TRUE;
 }
 
-void wxNotebook::SetFont( const wxFont &font )
+void wxNotebook::ApplyWidgetStyle()
 {
-  wxCHECK_RET( m_widget != NULL, "invalid notebook" );
-
-  wxControl::SetFont( font );
-   
-  gtk_widget_set_style( m_widget, m_widgetStyle );
-}
-
-void wxNotebook::SetBackgroundColour( const wxColour &colour )
-{
-  wxCHECK_RET( m_widget != NULL, "invalid notebook" );
-
-  wxControl::SetBackgroundColour( colour );
-  
-  if (!m_backgroundColour.Ok()) return;
-  
+  SetWidgetStyle();
   gtk_widget_set_style( m_widget, m_widgetStyle );
 }