]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/tglbtn.cpp
Wait() doesn't cancel the thread any longer
[wxWidgets.git] / src / gtk1 / tglbtn.cpp
index 9ad3fceec1efc34d1f28aa77176b380a517523e2..f103789376cf232da9588f868a730a2f96a19ac1 100644 (file)
@@ -166,8 +166,8 @@ void wxToggleButton::OnInternalIdle()
         gdk_window_set_cursor(win, cursor.GetCursor());
     }
 
-    if (wxUpdateUIEvent::CanUpdate())
-        UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }
 
 // wxSize DoGetBestSize() const