From: Václav Slavík Date: Sun, 15 Aug 2004 11:49:42 +0000 (+0000) Subject: invalidate best size cache when GTK style changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6dd18972d509fce16afa05eba194ca21db2c48f3 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 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 07ff8e6952..8f3eadcf97 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -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) diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 07ff8e6952..8f3eadcf97 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -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)