]> git.saurik.com Git - wxWidgets.git/commitdiff
use text cursor only when control is enabled, #10347
authorPaul Cornett <paulcor@bullseye.com>
Mon, 12 Jan 2009 05:34:07 +0000 (05:34 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 12 Jan 2009 05:34:07 +0000 (05:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/textctrl.cpp

index 7133259dcb5ab0e1fde5668cafc652bb68524706..11d4eab71665d5e419edc733098c6fe0077b3a65 100644 (file)
@@ -1252,6 +1252,7 @@ bool wxTextCtrl::Enable( bool enable )
     }
 
     gtk_widget_set_sensitive( m_text, enable );
+    SetCursor(enable ? wxCursor(wxCURSOR_IBEAM) : wxCursor());
 
     return true;
 }