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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user