invalidate best size cache when GTK style changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-08-15 11:49:42 +00:00
parent 718e35a651
commit 6dd18972d5
2 changed files with 6 additions and 0 deletions

View File

@ -4230,6 +4230,9 @@ void wxWindowGTK::ApplyWidgetStyle(bool forceStyle)
DoApplyWidgetStyle(style);
gtk_rc_style_unref(style);
}
// Style change may affect GTK+'s size calculation:
InvalidateBestSize();
}
void wxWindowGTK::DoApplyWidgetStyle(GtkRcStyle *style)

View File

@ -4230,6 +4230,9 @@ void wxWindowGTK::ApplyWidgetStyle(bool forceStyle)
DoApplyWidgetStyle(style);
gtk_rc_style_unref(style);
}
// Style change may affect GTK+'s size calculation:
InvalidateBestSize();
}
void wxWindowGTK::DoApplyWidgetStyle(GtkRcStyle *style)