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

Unified Diff: views/controls/menu/native_menu_gtk.cc

Issue 3083022: Rework gfx::Font by moving platform-specific code into inner classes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « views/controls/menu/menu_win.cc ('k') | views/controls/menu/native_menu_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/native_menu_gtk.cc
===================================================================
--- views/controls/menu/native_menu_gtk.cc (revision 55911)
+++ views/controls/menu/native_menu_gtk.cc (working copy)
@@ -316,8 +316,9 @@
// The label item is the first child of the menu item.
GtkWidget* label_widget = GTK_BIN(menu_item)->child;
DCHECK(label_widget && GTK_IS_LABEL(label_widget));
- gtk_widget_modify_font(label_widget,
- gfx::Font::PangoFontFromGfxFont(*font));
+ PangoFontDescription* pfd = font->GetNativeFont();
+ gtk_widget_modify_font(label_widget, pfd);
+ pango_font_description_free(pfd);
}
if (type == menus::MenuModel::TYPE_SUBMENU) {
« no previous file with comments | « views/controls/menu/menu_win.cc ('k') | views/controls/menu/native_menu_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698