css: Add a :checked pseudoclass

https://bugzilla.gnome.org/show_bug.cgi?id=733967
This commit is contained in:
Benjamin Otte
2014-08-14 03:00:02 +02:00
parent 3f4b9d8164
commit 36a2e7ca8e
6 changed files with 17 additions and 9 deletions

View File

@ -333,18 +333,14 @@ gtk_widget_path_to_string (const GtkWidgetPath *path)
{
GFlagsClass *fclass;
gint i;
gboolean appended;
appended = FALSE;
fclass = g_type_class_ref (GTK_TYPE_STATE_FLAGS);
for (i = 0; i < fclass->n_values; i++)
{
if (elem->state & fclass->values[i].value)
{
if (appended)
g_string_append_c (string, ':');
g_string_append_c (string, ':');
g_string_append (string, fclass->values[i].value_nick);
appended = TRUE;
}
}
g_type_class_unref (fclass);