mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 13:10:08 +00:00
styleproperties: Remove unused function
This commit is contained in:
parent
a1f7c459b7
commit
e2a0780543
@ -585,25 +585,6 @@ gtk_style_properties_set (GtkStyleProperties *props,
|
|||||||
va_end (args);
|
va_end (args);
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkCssValue *
|
|
||||||
_gtk_style_properties_peek_property (GtkStyleProperties *props,
|
|
||||||
GtkCssStyleProperty *property,
|
|
||||||
GtkStateFlags state)
|
|
||||||
{
|
|
||||||
GtkStylePropertiesPrivate *priv;
|
|
||||||
PropertyData *prop;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_STYLE_PROPERTIES (props), FALSE);
|
|
||||||
g_return_val_if_fail (property != NULL, FALSE);
|
|
||||||
|
|
||||||
priv = props->priv;
|
|
||||||
prop = g_hash_table_lookup (priv->properties, property);
|
|
||||||
if (prop == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
return property_data_match_state (prop, state);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GtkStyleProperties *props;
|
GtkStyleProperties *props;
|
||||||
GtkStateFlags state;
|
GtkStateFlags state;
|
||||||
@ -614,10 +595,14 @@ style_query_func (guint id,
|
|||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
StyleQueryData *query = data;
|
StyleQueryData *query = data;
|
||||||
|
PropertyData *prop;
|
||||||
|
|
||||||
return _gtk_style_properties_peek_property (query->props,
|
prop = g_hash_table_lookup (query->props->priv->properties,
|
||||||
_gtk_css_style_property_lookup_by_id (id),
|
_gtk_css_style_property_lookup_by_id (id));
|
||||||
query->state);
|
if (prop == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
return property_data_match_state (prop, query->state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,9 +24,6 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
GtkCssValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
|
|
||||||
GtkCssStyleProperty *property,
|
|
||||||
GtkStateFlags state);
|
|
||||||
void _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
|
void _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
|
||||||
GtkCssStyleProperty *property,
|
GtkCssStyleProperty *property,
|
||||||
GtkStateFlags state,
|
GtkStateFlags state,
|
||||||
|
Loading…
Reference in New Issue
Block a user