mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
styleproperty: Remove context arg from _gtk_style_context_query()
This commit is contained in:
parent
a9d1be0bef
commit
32c8bbb575
@ -195,20 +195,19 @@ _gtk_border_image_unpack (const GValue *value,
|
||||
void
|
||||
_gtk_border_image_pack (GValue *value,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context)
|
||||
GtkStateFlags state)
|
||||
{
|
||||
GtkBorderImage *image;
|
||||
cairo_pattern_t *source;
|
||||
GtkBorder *slice, *width;
|
||||
GtkCssBorderImageRepeat *repeat;
|
||||
|
||||
_gtk_style_properties_get (props, state, context,
|
||||
"border-image-source", &source,
|
||||
"border-image-slice", &slice,
|
||||
"border-image-repeat", &repeat,
|
||||
"border-image-width", &width,
|
||||
NULL);
|
||||
gtk_style_properties_get (props, state,
|
||||
"border-image-source", &source,
|
||||
"border-image-slice", &slice,
|
||||
"border-image-repeat", &repeat,
|
||||
"border-image-width", &width,
|
||||
NULL);
|
||||
|
||||
if (source == NULL)
|
||||
{
|
||||
|
@ -64,8 +64,7 @@ GParameter * _gtk_border_image_unpack (const GValue *valu
|
||||
guint *n_params);
|
||||
void _gtk_border_image_pack (GValue *value,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context);
|
||||
GtkStateFlags state);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -88,7 +88,6 @@ static void
|
||||
_gtk_css_shorthand_property_query (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context,
|
||||
GValue *value)
|
||||
{
|
||||
property->pack_func (value, props, state);
|
||||
|
@ -125,7 +125,6 @@ static void
|
||||
_gtk_css_style_property_query (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context,
|
||||
GValue *value)
|
||||
{
|
||||
const GValue *val;
|
||||
|
@ -653,7 +653,7 @@ _gtk_style_properties_get_property (GtkStyleProperties *props,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
_gtk_style_property_query (node, props, state, context, value);
|
||||
_gtk_style_property_query (node, props, state, value);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -211,21 +211,19 @@ void
|
||||
_gtk_style_property_query (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context,
|
||||
GValue *value)
|
||||
{
|
||||
GtkStylePropertyClass *klass;
|
||||
|
||||
g_return_if_fail (property != NULL);
|
||||
g_return_if_fail (GTK_IS_STYLE_PROPERTIES (props));
|
||||
g_return_if_fail (context != NULL);
|
||||
g_return_if_fail (value != NULL);
|
||||
|
||||
klass = GTK_STYLE_PROPERTY_GET_CLASS (property);
|
||||
|
||||
g_value_init (value, property->value_type);
|
||||
|
||||
klass->query (property, props, state, context, value);
|
||||
klass->query (property, props, state, value);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -67,7 +67,6 @@ struct _GtkStylePropertyClass
|
||||
void (* query) (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context,
|
||||
GValue *value);
|
||||
gboolean (* parse_value) (GtkStyleProperty * property,
|
||||
GValue *value,
|
||||
@ -92,7 +91,6 @@ GType _gtk_style_property_get_value_type(GtkStyleProperty *
|
||||
void _gtk_style_property_query (GtkStyleProperty * property,
|
||||
GtkStyleProperties *props,
|
||||
GtkStateFlags state,
|
||||
GtkStylePropertyContext *context,
|
||||
GValue *value);
|
||||
void _gtk_style_property_assign (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
|
Loading…
Reference in New Issue
Block a user