projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d476275
)
don't make read-only text controls editable when enabled
author
Václav Slavík
<vslavik@fastmail.fm>
Sun, 17 Jun 2007 09:29:41 +0000
(09:29 +0000)
committer
Václav Slavík
<vslavik@fastmail.fm>
Sun, 17 Jun 2007 09:29:41 +0000
(09:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46502
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/gtk/textctrl.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/gtk/textctrl.cpp
b/src/gtk/textctrl.cpp
index 03d093667cb775336b593a3052f5f998c8487373..295f3bfbecab570459b0e1a059477247e3856f76 100644
(file)
--- a/
src/gtk/textctrl.cpp
+++ b/
src/gtk/textctrl.cpp
@@
-1293,14
+1293,7
@@
bool wxTextCtrl::Enable( bool enable )
return false;
}
return false;
}
- if ( IsMultiLine() )
- {
- SetEditable( enable );
- }
- else
- {
- gtk_widget_set_sensitive( m_text, enable );
- }
+ gtk_widget_set_sensitive( m_text, enable );
return true;
}
return true;
}