]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
generate a text event even if SetValue() didn't really chaneg anything
[wxWidgets.git] / src / gtk / textctrl.cpp
index d612b6a9c221dcdd702473376d42de023e75827b..23b5a380f2d98c7fd23ebe4ffc382d87cb71f336 100644 (file)
@@ -1591,7 +1591,8 @@ void wxTextCtrl::OnInternalIdle()
         }
     }
 
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }
 
 wxSize wxTextCtrl::DoGetBestSize() const