summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagescaledprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-03-15 01:15:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-03-15 06:04:08 -0400
commita4c2819f91e9c5b93a8dbc88d2c2bcf8704354ab (patch)
tree1c349e561561e36d89ca1f8c4a702b836b047486 /gtk/gtkcssimagescaledprivate.h
parent16bf07fe333c173aa629c999c5b1a09a9f50f2ea (diff)
downloadgtk+-a4c2819f91e9c5b93a8dbc88d2c2bcf8704354ab.tar.gz
Make GtkCssImageScaled handle scales properly
We slightly expand the syntax of -gtk-scaled to allow specifying an explicit scale after each image, and then we create a single-image GtkCssImageScaled with the preferred scale in compute().
Diffstat (limited to 'gtk/gtkcssimagescaledprivate.h')
-rw-r--r--gtk/gtkcssimagescaledprivate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcssimagescaledprivate.h b/gtk/gtkcssimagescaledprivate.h
index d21901111b..9fc75ef833 100644
--- a/gtk/gtkcssimagescaledprivate.h
+++ b/gtk/gtkcssimagescaledprivate.h
@@ -39,7 +39,8 @@ struct _GtkCssImageScaled
GtkCssImage parent;
GtkCssImage **images;
- int n_images;
+ int n_images;
+ int *scales;
};
struct _GtkCssImageScaledClass