diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-06-27 18:26:05 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-07-03 14:39:25 +0200 |
commit | af2c40bd54149237cd4ab998b5515167018fdc47 (patch) | |
tree | 09b605f0a8192ea4215863cdca2082eaf263d3a8 /gtk/gtkcssimage.c | |
parent | 38e1748df89ef0a92b050f77529cd42cea9b3caa (diff) | |
download | gtk+-af2c40bd54149237cd4ab998b5515167018fdc47.tar.gz |
css: Add a scale argument to css-value compute vfunc
We need to be able to compute different GtkCssImage values
depending on the scale, and we need this at compute time so that
we don't need to read any images other than the scale in used (to
e.g. calculate the image size). GtkStyleProviderPrivate is shared
for all style contexts, so its not right.
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r-- | gtk/gtkcssimage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c index 167af64a91..d1c1df72bb 100644 --- a/gtk/gtkcssimage.c +++ b/gtk/gtkcssimage.c @@ -62,6 +62,7 @@ static GtkCssImage * gtk_css_image_real_compute (GtkCssImage *image, guint property_id, GtkStyleProviderPrivate *provider, + int scale, GtkCssComputedValues *values, GtkCssComputedValues *parent_values, GtkCssDependencies *dependencies) @@ -146,6 +147,7 @@ GtkCssImage * _gtk_css_image_compute (GtkCssImage *image, guint property_id, GtkStyleProviderPrivate *provider, + int scale, GtkCssComputedValues *values, GtkCssComputedValues *parent_values, GtkCssDependencies *dependencies) @@ -163,7 +165,7 @@ _gtk_css_image_compute (GtkCssImage *image, klass = GTK_CSS_IMAGE_GET_CLASS (image); - return klass->compute (image, property_id, provider, values, parent_values, dependencies); + return klass->compute (image, property_id, provider, scale, values, parent_values, dependencies); } GtkCssImage * |