[gtk+] widgetpath: Use CSS-like syntax in to_string()



commit b276b6198f6937700f0cfc39dfbfe7cd156747e7
Author: Benjamin Otte <otte redhat com>
Date:   Wed Aug 13 16:18:04 2014 +0200

    widgetpath: Use CSS-like syntax in to_string()
    
    Print pseudo-classes using ':' sign.

 gtk/gtkwidgetpath.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index b33d23b..aeb2980 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);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]