summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-14 20:33:17 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-14 20:33:17 +0000
commit359fa6cd725d52ea9b1558539494d3fb757225f4 (patch)
tree3eedc59c0a2d20fbabcfcbeb3db9738ecc6e2d80 /views
parent76353a19f68031f9364c647f74c02deb957cdeed (diff)
downloadchromium_src-359fa6cd725d52ea9b1558539494d3fb757225f4.zip
chromium_src-359fa6cd725d52ea9b1558539494d3fb757225f4.tar.gz
chromium_src-359fa6cd725d52ea9b1558539494d3fb757225f4.tar.bz2
Fix tooltip wrap problem per chromium-os:4042
Remove the max width chars logic and let GtkLabel decide how to wrap. BUG=chromium-os:4042 TEST=Verify fix for chromium-os:4042 Review URL: http://codereview.chromium.org/2832003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/tooltip_window_gtk.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/views/widget/tooltip_window_gtk.cc b/views/widget/tooltip_window_gtk.cc
index e76338c..3b8bed7 100644
--- a/views/widget/tooltip_window_gtk.cc
+++ b/views/widget/tooltip_window_gtk.cc
@@ -25,10 +25,6 @@ void TooltipWindowGtk::SetTooltipText(const std::wstring& text) {
const std::string& utf8 = WideToUTF8(text);
gtk_label_set_text(label(), utf8.c_str());
- // Setting the text in a label doesn't force recalculating wrap position.
- // We force recalculating wrap position by resetting the max width.
- gtk_label_set_max_width_chars(label(), 2999);
- gtk_label_set_max_width_chars(label(), 3000);
}
void TooltipWindowGtk::Init() {
@@ -55,7 +51,6 @@ void TooltipWindowGtk::Init() {
label_ = gtk_label_new("");
gtk_label_set_line_wrap(GTK_LABEL(label_), TRUE);
- gtk_label_set_max_width_chars(GTK_LABEL(label_), 3000);
gtk_container_add(GTK_CONTAINER(alignment_), label_);
gtk_widget_show(label_);