summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 15:29:17 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-24 15:29:17 +0000
commit573579067dd15b14df0beff2506de818e96f0fb2 (patch)
tree4bdf711b4db60e8a0db6634d4fc3171b99312bd6 /views
parent647c1717cac531681c42a5dc1c29ffe6d095fdd5 (diff)
downloadchromium_src-573579067dd15b14df0beff2506de818e96f0fb2.zip
chromium_src-573579067dd15b14df0beff2506de818e96f0fb2.tar.gz
chromium_src-573579067dd15b14df0beff2506de818e96f0fb2.tar.bz2
Default to GTK_WRAP_WORD_CHAR for multiline textfield on Gtk.
BUG=chromium-os:4258 TEST=Verify fix for chromium-os:4258. Review URL: http://codereview.chromium.org/2824026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/textfield/native_textfield_gtk.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc
index 5da4b78..7fd05ad 100644
--- a/views/controls/textfield/native_textfield_gtk.cc
+++ b/views/controls/textfield/native_textfield_gtk.cc
@@ -358,6 +358,9 @@ void NativeTextfieldGtk::CreateNativeControl() {
if (textfield_->draw_border())
gtk_container_set_border_width(GTK_CONTAINER(native_view()),
kTextViewBorderWidth);
+
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(native_view()),
+ GTK_WRAP_WORD_CHAR);
} else {
NativeControlCreated(gtk_views_entry_new(this));
gtk_entry_set_invisible_char(GTK_ENTRY(native_view()),