diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:21:55 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:21:55 +0000 |
commit | ce7b36bcb93076fe721ef63cdd9cd4c21cc39be4 (patch) | |
tree | 23a6f90a9b1e9b2bf2df99d40bd893ec07ecb71e /chrome/browser/gtk/gtk_util.h | |
parent | 59d49aa8b39fd45a206549b7d19b4d02908af9a8 (diff) | |
download | chromium_src-ce7b36bcb93076fe721ef63cdd9cd4c21cc39be4.zip chromium_src-ce7b36bcb93076fe721ef63cdd9cd4c21cc39be4.tar.gz chromium_src-ce7b36bcb93076fe721ef63cdd9cd4c21cc39be4.tar.bz2 |
[GTK] Only use label wrapping workaround when in RTL mode.
BUG=none
TEST=see attached image
Review URL: http://codereview.chromium.org/3351023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59160 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_util.h')
-rw-r--r-- | chrome/browser/gtk/gtk_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_util.h b/chrome/browser/gtk/gtk_util.h index efc7086..a28886c 100644 --- a/chrome/browser/gtk/gtk_util.h +++ b/chrome/browser/gtk/gtk_util.h @@ -322,6 +322,12 @@ bool IsWidgetAncestryVisible(GtkWidget* widget); // Sets the GTK font from the given font name (ex. "Arial Black, 10"). void SetGtkFont(const std::string& font_name); +// Sets the given label's size request to |pixel_width|. This will cause the +// label to wrap if it needs to. The reason for this function is that some +// versions of GTK mis-align labels that have a size request and line wrapping, +// and this function hides the complexity of the workaround. +void SetLabelWidth(GtkWidget* label, int pixel_width); + } // namespace gtk_util #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ |