css: Rename functions

I don't want to use a generic function for font sizes as font sizes are
special. Plus, the function is only used in one place.
This commit is contained in:
Benjamin Otte
2016-07-28 11:31:30 -04:00
parent ca6c928c5b
commit f422208040

View File

@ -126,7 +126,7 @@ assign_length_from_int (GtkCssStyleProperty *property,
} }
static void static void
query_length_as_double (GtkCssStyleProperty *property, query_font_size (GtkCssStyleProperty *property,
const GtkCssValue *css_value, const GtkCssValue *css_value,
GValue *value) GValue *value)
{ {
@ -135,7 +135,7 @@ query_length_as_double (GtkCssStyleProperty *property,
} }
static GtkCssValue * static GtkCssValue *
assign_length_from_double (GtkCssStyleProperty *property, assign_font_size (GtkCssStyleProperty *property,
const GValue *value) const GValue *value)
{ {
return _gtk_css_number_value_new (g_value_get_double (value), GTK_CSS_PX); return _gtk_css_number_value_new (g_value_get_double (value), GTK_CSS_PX);
@ -1078,8 +1078,8 @@ _gtk_css_style_property_init_properties (void)
GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED, GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
GTK_CSS_AFFECTS_FONT | GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_SIZE, GTK_CSS_AFFECTS_FONT | GTK_CSS_AFFECTS_TEXT | GTK_CSS_AFFECTS_SIZE,
font_size_parse, font_size_parse,
query_length_as_double, query_font_size,
assign_length_from_double, assign_font_size,
_gtk_css_font_size_value_new (GTK_CSS_FONT_SIZE_MEDIUM)); _gtk_css_font_size_value_new (GTK_CSS_FONT_SIZE_MEDIUM));
gtk_css_style_property_register ("-gtk-icon-theme", gtk_css_style_property_register ("-gtk-icon-theme",
GTK_CSS_PROPERTY_ICON_THEME, GTK_CSS_PROPERTY_ICON_THEME,