X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10effff8320196145fe96a32535d03ec7a453e70..406a0ab32cdc478e025c56c27b4e4e3d5e24f4a1:/src/aui/auibar.cpp diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index 9d933d93d6..d9bb3046b4 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -1284,9 +1284,7 @@ void wxAuiToolBar::SetToolSticky(int tool_id, bool sticky) item->m_sticky = sticky; Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif } bool wxAuiToolBar::GetToolSticky(int tool_id) const @@ -1427,9 +1425,7 @@ void wxAuiToolBar::SetHoverItem(wxAuiToolBarItem* pitem) if (former_hover != pitem) { Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif } } @@ -1455,9 +1451,7 @@ void wxAuiToolBar::SetPressedItem(wxAuiToolBarItem* pitem) if (former_item != pitem) { Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif } } @@ -1491,9 +1485,7 @@ void wxAuiToolBar::RefreshOverflowState() { m_overflowState = overflow_state; Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif } m_overflowState = overflow_state; @@ -2249,9 +2241,7 @@ void wxAuiToolBar::OnSize(wxSizeEvent& WXUNUSED(evt)) m_sizer->SetDimension(0, 0, x, y); Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif // idle events aren't sent while user is resizing frame (why?), // but resizing toolbar here causes havoc, @@ -2634,9 +2624,7 @@ void wxAuiToolBar::OnLeftUp(wxMouseEvent& evt) // repaint immediately Refresh(false); -#ifdef TODO_REMOVE_IF_NO_PROBLEMS Update(); -#endif e.SetInt(toggle); }