don't avoid no-window widgets in GTKUpdateCursor()
it doesn't work for things like multi-line text control where m_widget is a no-window GtkScrolledWindow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3671,12 +3671,8 @@ bool wxWindowGTK::SetCursor( const wxCursor &cursor )
|
|||||||
|
|
||||||
void wxWindowGTK::GTKUpdateCursor(bool, bool)
|
void wxWindowGTK::GTKUpdateCursor(bool, bool)
|
||||||
{
|
{
|
||||||
if (m_widget == NULL ||
|
if (m_widget == NULL || !gtk_widget_get_realized(m_widget))
|
||||||
!gtk_widget_get_realized(m_widget) ||
|
|
||||||
(m_wxwindow == NULL && !gtk_widget_get_has_window(m_widget)))
|
|
||||||
{
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
GdkCursor* cursor = NULL;
|
GdkCursor* cursor = NULL;
|
||||||
if (m_cursor.IsOk())
|
if (m_cursor.IsOk())
|
||||||
|
Reference in New Issue
Block a user