Removed crashes when not using themes.

Removed much flicker form tree ctrl and list ctrl.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-01-04 22:56:58 +00:00
parent 64d78265d0
commit e6527f9dd4
9 changed files with 80 additions and 36 deletions

View File

@@ -2962,7 +2962,12 @@ GtkStyle *wxWindow::GetWidgetStyle()
{
if (m_widgetStyle) gtk_style_unref( m_widgetStyle );
m_widgetStyle = gtk_style_copy( gtk_rc_get_style( m_widget ) );
GtkStyle *def = gtk_rc_get_style( m_widget );
if (!def)
def = gtk_widget_get_default_style();
m_widgetStyle = gtk_style_copy( def );
return m_widgetStyle;
}