summaryrefslogtreecommitdiff
path: root/gdk/gdkpango.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-09-30 04:58:29 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commitfec8069e7bf2907bcf19cd1a7c5535ee89ba1ed9 (patch)
tree60e68329614a1d360a44dc168c905d10421030c3 /gdk/gdkpango.c
parentfcbd480c765747a25c9184f82cb13e74c47dfa75 (diff)
downloadgtk+-fec8069e7bf2907bcf19cd1a7c5535ee89ba1ed9.tar.gz
API: screen: Stop storing font options
font options are only ever set by the GtkSettings object and only ever used inside GTK, so just store them there.
Diffstat (limited to 'gdk/gdkpango.c')
-rw-r--r--gdk/gdkpango.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 3d6a909245..9c431c6692 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -350,7 +350,6 @@ gdk_pango_context_get_for_screen (GdkScreen *screen)
{
PangoFontMap *fontmap;
PangoContext *context;
- const cairo_font_options_t *options;
double dpi;
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
@@ -358,9 +357,6 @@ gdk_pango_context_get_for_screen (GdkScreen *screen)
fontmap = pango_cairo_font_map_get_default ();
context = pango_font_map_create_context (fontmap);
- options = gdk_screen_get_font_options (screen);
- pango_cairo_context_set_font_options (context, options);
-
dpi = gdk_screen_get_resolution (screen);
pango_cairo_context_set_resolution (context, dpi);