mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
styleproperty: Simplify code
Merge 1-line function into only caller
This commit is contained in:
parent
3d6a76a866
commit
fd3afa3606
@ -115,15 +115,6 @@ _gtk_css_style_property_assign (GtkStyleProperty *property,
|
||||
value);
|
||||
}
|
||||
|
||||
static void
|
||||
_gtk_style_property_default_value (GtkStyleProperty *property,
|
||||
GtkStyleProperties *properties,
|
||||
GtkStateFlags state,
|
||||
GValue *value)
|
||||
{
|
||||
g_value_copy (_gtk_css_style_property_get_initial_value (GTK_CSS_STYLE_PROPERTY (property)), value);
|
||||
}
|
||||
|
||||
static void
|
||||
_gtk_css_style_property_query (GtkStyleProperty *property,
|
||||
GtkStyleProperties *props,
|
||||
@ -165,7 +156,7 @@ _gtk_css_style_property_query (GtkStyleProperty *property,
|
||||
g_value_copy (val, value);
|
||||
}
|
||||
else
|
||||
_gtk_style_property_default_value (property, props, state, value);
|
||||
g_value_copy (_gtk_css_style_property_get_initial_value (GTK_CSS_STYLE_PROPERTY (property)), value);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user