mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
cssnode: Remove now unused arg from vfunc
This commit is contained in:
parent
89115be3cb
commit
ee6d081ed9
@ -253,7 +253,7 @@ gtk_css_matcher_node_get_parent (GtkCssMatcher *matcher,
|
||||
if (node == NULL)
|
||||
return FALSE;
|
||||
|
||||
return gtk_css_node_init_matcher (node, matcher, NULL);
|
||||
return gtk_css_node_init_matcher (node, matcher);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@ -266,7 +266,7 @@ gtk_css_matcher_node_get_previous (GtkCssMatcher *matcher,
|
||||
if (node == NULL)
|
||||
return FALSE;
|
||||
|
||||
return gtk_css_node_init_matcher (node, matcher, NULL);
|
||||
return gtk_css_node_init_matcher (node, matcher);
|
||||
}
|
||||
|
||||
static GtkStateFlags
|
||||
|
@ -181,7 +181,6 @@ gtk_css_node_update_style (GtkCssNode *cssnode,
|
||||
{
|
||||
const GtkCssNodeDeclaration *decl;
|
||||
GtkCssMatcher matcher;
|
||||
GtkWidgetPath *path;
|
||||
GtkCssStyle *parent;
|
||||
GtkCssStyle *result;
|
||||
|
||||
@ -192,7 +191,7 @@ gtk_css_node_update_style (GtkCssNode *cssnode,
|
||||
if (result)
|
||||
return g_object_ref (result);
|
||||
|
||||
if (!gtk_css_node_init_matcher (cssnode, &matcher, &path))
|
||||
if (!gtk_css_node_init_matcher (cssnode, &matcher))
|
||||
{
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
@ -203,9 +202,6 @@ gtk_css_node_update_style (GtkCssNode *cssnode,
|
||||
&matcher,
|
||||
parent);
|
||||
|
||||
if (path)
|
||||
gtk_widget_path_free (path);
|
||||
|
||||
store_in_global_parent_cache (cssnode, parent, decl, style);
|
||||
|
||||
return result;
|
||||
@ -216,7 +212,6 @@ gtk_css_node_create_style (GtkCssNode *cssnode)
|
||||
{
|
||||
const GtkCssNodeDeclaration *decl;
|
||||
GtkCssMatcher matcher;
|
||||
GtkWidgetPath *path;
|
||||
GtkCssStyle *parent;
|
||||
GtkCssStyle *style;
|
||||
|
||||
@ -227,7 +222,7 @@ gtk_css_node_create_style (GtkCssNode *cssnode)
|
||||
if (style)
|
||||
return g_object_ref (style);
|
||||
|
||||
if (gtk_css_node_init_matcher (cssnode, &matcher, &path))
|
||||
if (gtk_css_node_init_matcher (cssnode, &matcher))
|
||||
style = gtk_css_static_style_new_compute (gtk_css_node_get_style_provider (cssnode),
|
||||
&matcher,
|
||||
parent);
|
||||
@ -236,9 +231,6 @@ gtk_css_node_create_style (GtkCssNode *cssnode)
|
||||
NULL,
|
||||
parent);
|
||||
|
||||
if (path)
|
||||
gtk_widget_path_free (path);
|
||||
|
||||
store_in_global_parent_cache (cssnode, parent, decl, style);
|
||||
|
||||
return style;
|
||||
@ -298,8 +290,7 @@ gtk_css_node_real_validate (GtkCssNode *cssnode,
|
||||
|
||||
gboolean
|
||||
gtk_css_node_real_init_matcher (GtkCssNode *cssnode,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path_out)
|
||||
GtkCssMatcher *matcher)
|
||||
{
|
||||
_gtk_css_matcher_node_init (matcher, cssnode);
|
||||
|
||||
@ -704,13 +695,9 @@ gtk_css_node_validate (GtkCssNode *cssnode,
|
||||
|
||||
gboolean
|
||||
gtk_css_node_init_matcher (GtkCssNode *cssnode,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path_out)
|
||||
GtkCssMatcher *matcher)
|
||||
{
|
||||
if (path_out)
|
||||
*path_out = NULL;
|
||||
|
||||
return GTK_CSS_NODE_GET_CLASS (cssnode)->init_matcher (cssnode, matcher, path_out);
|
||||
return GTK_CSS_NODE_GET_CLASS (cssnode)->init_matcher (cssnode, matcher);
|
||||
}
|
||||
|
||||
GtkWidgetPath *
|
||||
|
@ -58,8 +58,7 @@ struct _GtkCssNodeClass
|
||||
GObjectClass object_class;
|
||||
|
||||
gboolean (* init_matcher) (GtkCssNode *cssnode,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path);
|
||||
GtkCssMatcher *matcher);
|
||||
GtkWidgetPath * (* create_widget_path) (GtkCssNode *cssnode);
|
||||
const GtkWidgetPath * (* get_widget_path) (GtkCssNode *cssnode);
|
||||
GtkStyleProviderPrivate *(* get_style_provider) (GtkCssNode *cssnode);
|
||||
@ -135,8 +134,7 @@ void gtk_css_node_set_invalid (GtkCssNode *
|
||||
gboolean invalid);
|
||||
|
||||
gboolean gtk_css_node_init_matcher (GtkCssNode *cssnode,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path);
|
||||
GtkCssMatcher *matcher);
|
||||
GtkWidgetPath * gtk_css_node_create_widget_path (GtkCssNode *cssnode);
|
||||
const GtkWidgetPath * gtk_css_node_get_widget_path (GtkCssNode *cssnode);
|
||||
GtkStyleProviderPrivate *gtk_css_node_get_style_provider(GtkCssNode *cssnode);
|
||||
|
@ -49,8 +49,7 @@ gtk_css_path_node_invalidate (GtkCssNode *node)
|
||||
|
||||
gboolean
|
||||
gtk_css_path_node_real_init_matcher (GtkCssNode *node,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path_out)
|
||||
GtkCssMatcher *matcher)
|
||||
{
|
||||
GtkCssPathNode *path_node = GTK_CSS_PATH_NODE (node);
|
||||
|
||||
|
@ -170,8 +170,7 @@ gtk_css_widget_node_validate (GtkCssNode *node,
|
||||
|
||||
gboolean
|
||||
gtk_css_widget_node_init_matcher (GtkCssNode *node,
|
||||
GtkCssMatcher *matcher,
|
||||
GtkWidgetPath **path_out)
|
||||
GtkCssMatcher *matcher)
|
||||
{
|
||||
GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user