diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:28:49 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-18 21:28:49 +0000 |
commit | 13ee61d7b61d186baeb2fec423e7b2b0a17c7e98 (patch) | |
tree | 3b67bf691e186fbdd7bf83f7520c7c8c67346f56 /chrome/browser/gtk/download_shelf_gtk.cc | |
parent | 3c53cfa23d26b9477e3ca46e141c820e9793a5f2 (diff) | |
download | chromium_src-13ee61d7b61d186baeb2fec423e7b2b0a17c7e98.zip chromium_src-13ee61d7b61d186baeb2fec423e7b2b0a17c7e98.tar.gz chromium_src-13ee61d7b61d186baeb2fec423e7b2b0a17c7e98.tar.bz2 |
Force the font size in the omnibox, tabs, find bar, and download shelf
so we don't get layout overflow issues. Ideally, we would have
vector graphics for buttons and stuff so this wouldn't be an issue,
but for now, this will have to do.
BUG=11128
Review URL: http://codereview.chromium.org/113546
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_shelf_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/download_shelf_gtk.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_shelf_gtk.cc b/chrome/browser/gtk/download_shelf_gtk.cc index f594a7f..00e81c8 100644 --- a/chrome/browser/gtk/download_shelf_gtk.cc +++ b/chrome/browser/gtk/download_shelf_gtk.cc @@ -14,6 +14,7 @@ #include "chrome/browser/gtk/link_button_gtk.h" #include "chrome/browser/gtk/slide_animator_gtk.h" #include "chrome/browser/tab_contents/tab_contents.h" +#include "chrome/common/gtk_util.h" #include "grit/generated_resources.h" #include "grit/theme_resources.h" @@ -96,6 +97,9 @@ DownloadShelfGtk::DownloadShelfGtk(TabContents* tab_contents) link_button_.reset(new LinkButtonGtk(link_text.c_str())); g_signal_connect(link_button_->widget(), "clicked", G_CALLBACK(OnButtonClick), this); + // Until we switch to vector graphics, force the font size. + // 13.4px == 10pt @ 96dpi + gtk_util::ForceFontSizePixels(link_button_->label(), 13.4); // Make the download arrow icon. ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |