diff options
author | Benjamin Otte <otte@redhat.com> | 2011-03-26 14:29:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-03-27 01:47:17 +0100 |
commit | 8b4b3cf090855586eb7f64aac12d5cb505ab1404 (patch) | |
tree | c749a2c7de77b8c5846bbbc5ef2250f951c09644 /gtk/gtkwidgetpath.h | |
parent | fafee4e27645f2b9f819444ad8ce6fe1f67182b8 (diff) | |
download | gtk+-8b4b3cf090855586eb7f64aac12d5cb505ab1404.tar.gz |
API: Add gtk_widget_path_to_string()
Dumps the widget path into a string representation. It tries to match the CSS
style as closely as possible (Note that there might be paths that cannot be
represented in CSS).
The main use of this code is for debugging purposes, so that you can
g_print() the path or dump it in a gdb session.
Diffstat (limited to 'gtk/gtkwidgetpath.h')
-rw-r--r-- | gtk/gtkwidgetpath.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h index 2c9c981e41..a84c420548 100644 --- a/gtk/gtkwidgetpath.h +++ b/gtk/gtkwidgetpath.h @@ -39,6 +39,7 @@ GtkWidgetPath * gtk_widget_path_new (void); GtkWidgetPath * gtk_widget_path_copy (const GtkWidgetPath *path); void gtk_widget_path_free (GtkWidgetPath *path); +char * gtk_widget_path_to_string (const GtkWidgetPath *path); gint gtk_widget_path_length (const GtkWidgetPath *path); gint gtk_widget_path_append_type (GtkWidgetPath *path, |