summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecascade.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-01-31 11:56:15 +0100
committerBenjamin Otte <otte@redhat.com>2015-02-06 11:26:31 +0100
commit1116914ea03685ffbff188e48e32685a4985c2d3 (patch)
tree13ba596816f999356a705ce410e588e7dfef56c4 /gtk/gtkstylecascade.c
parent808bfe0a98ac4cd2e11ea4eed82a66470121c19b (diff)
downloadgtk+-1116914ea03685ffbff188e48e32685a4985c2d3.tar.gz
css: Move scale to GtkStyleProviderPrivatewip/mir2
This way, we can remove it as a separate argument from gtk_css_value_compute() and allow computation to only depend on one thing: the style provider.
Diffstat (limited to 'gtk/gtkstylecascade.c')
-rw-r--r--gtk/gtkstylecascade.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkstylecascade.c b/gtk/gtkstylecascade.c
index 9219d61b59..13df0bd8b5 100644
--- a/gtk/gtkstylecascade.c
+++ b/gtk/gtkstylecascade.c
@@ -174,6 +174,14 @@ gtk_style_cascade_get_color (GtkStyleProviderPrivate *provider,
return NULL;
}
+static int
+gtk_style_cascade_get_scale (GtkStyleProviderPrivate *provider)
+{
+ GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
+
+ return cascade->scale;
+}
+
static GtkCssKeyframes *
gtk_style_cascade_get_keyframes (GtkStyleProviderPrivate *provider,
const char *name)
@@ -235,6 +243,7 @@ gtk_style_cascade_provider_private_iface_init (GtkStyleProviderPrivateInterface
{
iface->get_color = gtk_style_cascade_get_color;
iface->get_settings = gtk_style_cascade_get_settings;
+ iface->get_scale = gtk_style_cascade_get_scale;
iface->get_keyframes = gtk_style_cascade_get_keyframes;
iface->lookup = gtk_style_cascade_lookup;
}