diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-27 01:26:20 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-27 01:44:50 +0100 |
commit | 101df329ae7d4df779230ac565a7507fda44025d (patch) | |
tree | 18b8afca7878b4b29b6078d3cd598f7cba48adf5 /gtk/gtkwidgetpath.h | |
parent | aedd193c69f5857917369c083be04bd24a1e770e (diff) | |
download | gtk+-101df329ae7d4df779230ac565a7507fda44025d.tar.gz |
API: Add gtk_widget_path_iter_set_object_name()
... and gtk_widget_path_iter_get_object_name(). This allows applications
that still use widget paths to use the new object names to get the
correct styling.
Mutter and webkit-gtk are examples here.
Diffstat (limited to 'gtk/gtkwidgetpath.h')
-rw-r--r-- | gtk/gtkwidgetpath.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.h b/gtk/gtkwidgetpath.h index bd86434012..6ef1dbc7bd 100644 --- a/gtk/gtkwidgetpath.h +++ b/gtk/gtkwidgetpath.h @@ -72,6 +72,13 @@ GDK_AVAILABLE_IN_ALL void gtk_widget_path_iter_set_object_type (GtkWidgetPath *path, gint pos, GType type); +GDK_AVAILABLE_IN_3_20 +const char * gtk_widget_path_iter_get_object_name (const GtkWidgetPath *path, + gint pos); +GDK_AVAILABLE_IN_3_20 +void gtk_widget_path_iter_set_object_name (GtkWidgetPath *path, + gint pos, + const char *name); GDK_AVAILABLE_IN_ALL const GtkWidgetPath * gtk_widget_path_iter_get_siblings (const GtkWidgetPath *path, |