css: Add all border-radius properties

Implement all border-radisu properties as specified by
http://www.w3.org/TR/css3-background/#the-border-radius
The end goal here is to get joined buttons to really look joined.
This commit is contained in:
Benjamin Otte
2011-05-26 03:50:53 +02:00
parent 812b32e9e5
commit 90ff426396
5 changed files with 403 additions and 3 deletions

View File

@ -31,6 +31,7 @@
#include "gtkanimationdescription.h"
#include "gtkgradient.h"
#include "gtkshadowprivate.h"
#include "gtkcsstypesprivate.h"
#include "gtkstylepropertyprivate.h"
#include "gtkintl.h"
@ -512,6 +513,11 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
g_return_if_fail (value_type == CAIRO_GOBJECT_TYPE_PATTERN ||
value_type == GTK_TYPE_GRADIENT);
}
else if (style_prop->pspec->value_type == G_TYPE_INT)
{
g_return_if_fail (value_type == G_TYPE_INT ||
value_type == GTK_TYPE_CSS_BORDER_RADIUS);
}
else
g_return_if_fail (style_prop->pspec->value_type == value_type);