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:
parent
bf0c00c6e8
commit
247e5b1632
@ -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++ )
|
||||
{
|
||||
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user