]> git.saurik.com Git - wxWidgets.git/commitdiff
invalidate best size cache when GTK style changes
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Aug 2004 11:49:42 +0000 (11:49 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 15 Aug 2004 11:49:42 +0000 (11:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 07ff8e6952608d62244f706502aa6f4a0807c955..8f3eadcf974fc1e2db03a0db60c15b15993e9dce 100644 (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)
index 07ff8e6952608d62244f706502aa6f4a0807c955..8f3eadcf974fc1e2db03a0db60c15b15993e9dce 100644 (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)