Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1300)

Unified Diff: chrome/browser/gtk/bookmark_utils_gtk.cc

Issue 1149002: Try and force the font size for the bookmarks bar and some hint (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_utils_gtk.cc
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc
index c15c9fb571c7319222b4d2e4ddf2c14c68e3c6c9..0ea4b8246d460fffe033606a84801dbdbff61a12 100644
--- a/chrome/browser/gtk/bookmark_utils_gtk.cc
+++ b/chrome/browser/gtk/bookmark_utils_gtk.cc
@@ -124,6 +124,8 @@ void ConfigureButtonForNode(const BookmarkNode* node, BookmarkModel* model,
std::string label_string = WideToUTF8(node->GetTitle());
if (!label_string.empty()) {
GtkWidget* label = gtk_label_new(label_string.c_str());
+ // Until we switch to vector graphics, force the font size.
+ gtk_util::ForceFontSizePixels(label, 13.4); // 13.4px == 10pt @ 96dpi
// Ellipsize long bookmark names.
if (node != model->other_node()) {
« no previous file with comments | « no previous file | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698