summaryrefslogtreecommitdiffstats
path: root/views/controls
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 23:42:35 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-09 23:42:35 +0000
commit54f0b8af290a09d00fc6b888c14f7a21dbecce7a (patch)
treee2eb35c52019a09345971df865f4b57d6d4cc548 /views/controls
parent4ed536fb5831c7ff6c5d2cacaf5182bf9f00af70 (diff)
downloadchromium_src-54f0b8af290a09d00fc6b888c14f7a21dbecce7a.zip
chromium_src-54f0b8af290a09d00fc6b888c14f7a21dbecce7a.tar.gz
chromium_src-54f0b8af290a09d00fc6b888c14f7a21dbecce7a.tar.bz2
The textfield's text was not updated when text is updated by input.
BUG=None TEST=view_examples now has button to show & update textfield's text. Review URL: http://codereview.chromium.org/267040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls')
-rw-r--r--views/controls/textfield/native_textfield_gtk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/controls/textfield/native_textfield_gtk.cc b/views/controls/textfield/native_textfield_gtk.cc
index 9704e7e..7a4c49a 100644
--- a/views/controls/textfield/native_textfield_gtk.cc
+++ b/views/controls/textfield/native_textfield_gtk.cc
@@ -220,6 +220,7 @@ gboolean NativeTextfieldGtk::OnChangedHandler(
}
gboolean NativeTextfieldGtk::OnChanged() {
+ textfield_->SyncText();
Textfield::Controller* controller = textfield_->GetController();
if (controller)
controller->ContentsChanged(textfield_, GetText());