TreeTest compiles again,

Found flickering bug wrt cursors.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-10-10 19:56:38 +00:00
parent bf0c00c6e8
commit 247e5b1632
3 changed files with 5 additions and 5 deletions

View File

@ -285,7 +285,7 @@ void MyFrame::OnCount(wxCommandEvent& WXUNUSED(event))
int i = m_treeCtrl->GetChildrenCount( item, FALSE );
wxLogMessage(T("%d children"), i);
wxLogMessage(wxT("%d children"), i);
}
void MyFrame::OnCountRec(wxCommandEvent& WXUNUSED(event))
@ -296,7 +296,7 @@ void MyFrame::OnCountRec(wxCommandEvent& WXUNUSED(event))
int i = m_treeCtrl->GetChildrenCount( item );
wxLogMessage(T("%d children"), i);
wxLogMessage(wxT("%d children"), i);
}
void MyFrame::DoSort(bool reverse)
@ -324,7 +324,7 @@ void MyFrame::OnDumpSelected(wxCommandEvent& WXUNUSED(event))
wxArrayTreeItemIds array;
size_t count = m_treeCtrl->GetSelections(array);
wxLogMessage(T("%u items selected"), count);
wxLogMessage(wxT("%u items selected"), count);
for ( size_t n = 0; n < count; n++ )
{

View File

@ -946,7 +946,7 @@ void wxTextCtrl::OnInternalIdle()
cursor = *wxSTANDARD_CURSOR;
window = m_widget->window;
if (window)
if ((window) && !(GTK_WIDGET_NO_WINDOW(m_widget)))
gdk_window_set_cursor( window, cursor.GetCursor() );
}
}

View File

@ -946,7 +946,7 @@ void wxTextCtrl::OnInternalIdle()
cursor = *wxSTANDARD_CURSOR;
window = m_widget->window;
if (window)
if ((window) && !(GTK_WIDGET_NO_WINDOW(m_widget)))
gdk_window_set_cursor( window, cursor.GetCursor() );
}
}