Commit 104caa74 authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

GtkStyleContext: Add gtk_style_context_list_child_classes().

parent 67c4f8d0
......@@ -473,6 +473,31 @@ child_style_class_compare (gconstpointer p1,
return (gint) c1->class_quark - c2->class_quark;
GList *
gtk_style_context_list_child_classes (GtkStyleContext *context)
GtkStyleContextPrivate *priv;
GList *classes = NULL;
GList *link;
g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
link = priv->child_style_classes;
while (link)
GtkChildClass *link_class;
link_class = link->data;
classes = g_list_prepend (classes,
g_quark_to_string (link_class->class_quark));
link = link->next;
return classes;
gtk_style_context_set_child_class (GtkStyleContext *context,
const gchar *class_name,
......@@ -84,6 +84,8 @@ void gtk_style_context_unset_class (GtkStyleContext *context,
gboolean gtk_style_context_has_class (GtkStyleContext *context,
const gchar *class_name);
GList * gtk_style_context_list_child_classes (GtkStyleContext *context);
void gtk_style_context_set_child_class (GtkStyleContext *context,
const gchar *class_name,
GtkChildClassFlags flags);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment