summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-08-13 16:18:04 +0200
committerBenjamin Otte <otte@redhat.com>2014-08-13 16:51:16 +0200
commitb276b6198f6937700f0cfc39dfbfe7cd156747e7 (patch)
tree57161e66b4b40fe6e90d6a5fb902d53c31e91bcc /gtk/gtkwidgetpath.c
parentde19fa4bb3353ef7ca1aaf86cf78f16845f58f26 (diff)
downloadgtk+-b276b6198f6937700f0cfc39dfbfe7cd156747e7.tar.gz
widgetpath: Use CSS-like syntax in to_string()
Print pseudo-classes using ':' sign.
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r--gtk/gtkwidgetpath.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index b33d23bd8b..aeb2980fe7 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -337,18 +337,16 @@ gtk_widget_path_to_string (const GtkWidgetPath *path)
appended = FALSE;
fclass = g_type_class_ref (GTK_TYPE_STATE_FLAGS);
- g_string_append_c (string, '[');
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_string_append_c (string, ']');
g_type_class_unref (fclass);
}