Chromium Code Reviews| Index: ui/gfx/gtk_util.cc |
| diff --git a/ui/gfx/gtk_util.cc b/ui/gfx/gtk_util.cc |
| index b1c7f44ace9e418aa4a9b3017ff35d16b4d43077..de3a759ededb6390a6242fbe122155267280eb52 100644 |
| --- a/ui/gfx/gtk_util.cc |
| +++ b/ui/gfx/gtk_util.cc |
| @@ -169,7 +169,8 @@ double GetPangoResolution() { |
| static bool determined_resolution = false; |
| if (!determined_resolution) { |
| determined_resolution = true; |
| - PangoContext* default_context = gdk_pango_context_get(); |
| + PangoFontMap* font_map = pango_cairo_font_map_get_default(); |
| + PangoContext* default_context = pango_font_map_create_context(font_map); |
|
jonathan.backer
2011/07/26 14:56:27
why is this necessary?
|
| resolution = pango_cairo_context_get_resolution(default_context); |
| g_object_unref(default_context); |
| } |