diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-11-06 19:33:05 +0100 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-11-08 11:10:44 -0500 |
commit | 3b436eec6d9b0c7aa046ff4b2b4c3a9f99b86574 (patch) | |
tree | d7cb908fa8bfdadccd839e69847edff689f38c65 /gtk/gtkcssprovider.c | |
parent | ee7ac4fa441d706c2f11fd2b041c46139a18fc11 (diff) | |
download | gtk+-3b436eec6d9b0c7aa046ff4b2b4c3a9f99b86574.tar.gz |
css: start background-repeat
By default, a background image is stretched. Instead, it is worth to
have a tiled background.
This patch allows background surfaces to be repeated or not, and should
be compatible with future extensions and CSS.
https://bugzilla.gnome.org/show_bug.cgi?id=663522
Diffstat (limited to 'gtk/gtkcssprovider.c')
-rw-r--r-- | gtk/gtkcssprovider.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 12457668e3..555a4b523b 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -840,6 +840,16 @@ * </entry> * </row> * <row> + * <entry>background-repeat</entry> + * <entry>[repeat|no-repeat]</entry> + * <entry>internal</entry> + * <entry><literallayout>background-repeat: no-repeat;</literallayout> + * If not specified, the style doesn't respect the CSS3 + * specification, since the background will be + * stretched to fill the area. + * </entry> + * </row> + * <row> * <entry>border-top-width</entry> * <entry>integer</entry> * <entry>#gint</entry> |