diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-03-15 01:15:52 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-03-15 06:04:08 -0400 |
commit | a4c2819f91e9c5b93a8dbc88d2c2bcf8704354ab (patch) | |
tree | 1c349e561561e36d89ca1f8c4a702b836b047486 /gtk/gtkcssimagescaledprivate.h | |
parent | 16bf07fe333c173aa629c999c5b1a09a9f50f2ea (diff) | |
download | gtk+-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.h | 3 |
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 |