forked from AuroraMiddleware/gtk
stylecontext: Remove some unused private API
This commit is contained in:
parent
1b10020b6e
commit
343707e0a2
@ -471,42 +471,6 @@ gtk_style_context_remove_provider_for_display (GdkDisplay *display,
|
|||||||
_gtk_style_cascade_remove_provider (cascade, provider);
|
_gtk_style_cascade_remove_provider (cascade, provider);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* gtk_style_context_set_id:
|
|
||||||
* @context: a #GtkStyleContext
|
|
||||||
* @id: (allow-none): the id to use or %NULL for none.
|
|
||||||
*
|
|
||||||
* Sets the CSS ID to be used when obtaining style information.
|
|
||||||
**/
|
|
||||||
void
|
|
||||||
gtk_style_context_set_id (GtkStyleContext *context,
|
|
||||||
const char *id)
|
|
||||||
{
|
|
||||||
GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
|
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
|
|
||||||
|
|
||||||
gtk_css_node_set_id (priv->cssnode, g_quark_from_string (id));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* gtk_style_context_get_id:
|
|
||||||
* @context: a #GtkStyleContext
|
|
||||||
*
|
|
||||||
* Returns the CSS ID used when obtaining style information.
|
|
||||||
*
|
|
||||||
* Returns: (nullable): the ID or %NULL if no ID is set.
|
|
||||||
**/
|
|
||||||
const char *
|
|
||||||
gtk_style_context_get_id (GtkStyleContext *context)
|
|
||||||
{
|
|
||||||
GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
|
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
|
|
||||||
|
|
||||||
return g_quark_to_string (gtk_css_node_get_id (priv->cssnode));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_style_context_set_state:
|
* gtk_style_context_set_state:
|
||||||
* @context: a #GtkStyleContext
|
* @context: a #GtkStyleContext
|
||||||
|
@ -33,9 +33,6 @@ G_BEGIN_DECLS
|
|||||||
GtkStyleContext *gtk_style_context_new_for_node (GtkCssNode *node);
|
GtkStyleContext *gtk_style_context_new_for_node (GtkCssNode *node);
|
||||||
|
|
||||||
GtkCssNode *gtk_style_context_get_node (GtkStyleContext *context);
|
GtkCssNode *gtk_style_context_get_node (GtkStyleContext *context);
|
||||||
void gtk_style_context_set_id (GtkStyleContext *context,
|
|
||||||
const char *id);
|
|
||||||
const char * gtk_style_context_get_id (GtkStyleContext *context);
|
|
||||||
GtkStyleProvider *
|
GtkStyleProvider *
|
||||||
gtk_style_context_get_style_provider (GtkStyleContext *context);
|
gtk_style_context_get_style_provider (GtkStyleContext *context);
|
||||||
|
|
||||||
@ -47,8 +44,6 @@ void gtk_style_context_save_to_node (GtkStyleContext *c
|
|||||||
GtkCssStyle * gtk_style_context_lookup_style (GtkStyleContext *context);
|
GtkCssStyle * gtk_style_context_lookup_style (GtkStyleContext *context);
|
||||||
GtkCssValue * _gtk_style_context_peek_property (GtkStyleContext *context,
|
GtkCssValue * _gtk_style_context_peek_property (GtkStyleContext *context,
|
||||||
guint property_id);
|
guint property_id);
|
||||||
gboolean _gtk_style_context_check_region_name (const gchar *str);
|
|
||||||
|
|
||||||
void _gtk_style_context_get_cursor_color (GtkStyleContext *context,
|
void _gtk_style_context_get_cursor_color (GtkStyleContext *context,
|
||||||
GdkRGBA *primary_color,
|
GdkRGBA *primary_color,
|
||||||
GdkRGBA *secondary_color);
|
GdkRGBA *secondary_color);
|
||||||
|
Loading…
Reference in New Issue
Block a user