diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-27 18:23:17 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-07-03 14:39:25 +0200 |
commit | 38e1748df89ef0a92b050f77529cd42cea9b3caa (patch) | |
tree | c23156cfb91a002456349fba542b35c82925918f /gtk | |
parent | 4cc1fe5bf5180fac76ca8fc2db0746812079f71e (diff) | |
download | gtk+-38e1748df89ef0a92b050f77529cd42cea9b3caa.tar.gz |
GtkWidget: Propagate scale to GtkStyleContext
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkwidget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index c1f9bb4dab..b5844e869e 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4999,6 +4999,8 @@ gtk_widget_realize (GtkWidget *widget) _gtk_widget_enable_device_events (widget); gtk_widget_update_devices_mask (widget, TRUE); + if (priv->context) + gtk_style_context_set_scale (priv->context, gtk_widget_get_scale_factor (widget)); gtk_widget_connect_frame_clock (widget, gtk_widget_get_frame_clock (widget)); @@ -15383,6 +15385,7 @@ gtk_widget_get_style_context (GtkWidget *widget) priv->context = gtk_style_context_new (); gtk_style_context_set_state (priv->context, priv->state_flags); + gtk_style_context_set_scale (priv->context, gtk_widget_get_scale_factor (widget)); screen = gtk_widget_get_screen (widget); if (screen) |