]> Pileus Git - ~andy/gtk/commit
styleproperty: turn border-image into a shorthand property
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 26 May 2011 19:54:38 +0000 (15:54 -0400)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 03:51:54 +0000 (05:51 +0200)
commite3dd437b67ca859d311979b880baba9d67d44fdf
treeefc33fe9c5d1d674b5aab5aaedd6f0a830609af9
parent9976530fe0a9d158df1b27b39f0db757a90c54b2
styleproperty: turn border-image into a shorthand property

It's composed by
- border-image-source: a cairo_pattern_t holding an image from file or a
  gradient
- border-image-slice: a GtkBorder containing the slice offsets to apply
  on the image
- border-image-repeat: a GtkRepeatType for the image

We deviate from pure CSS3 in the following ways:

* border-image-width is assumed to be always 1, i.e. always equal to
  what's specified by border-width. I don't think it's a particularly
  useful property to have, but we could add it later if needed.
* border-image-outset is absent, as we can't render outside of the
  allocation yet.

https://bugzilla.gnome.org/show_bug.cgi?id=651194
gtk/gtkstyleproperties.c
gtk/gtkstyleproperty.c