diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-25 22:21:15 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-02 02:03:50 +0200 |
commit | a6daba5e78df967258ca8998a8ec535be0746232 (patch) | |
tree | 0ce4385f6a2d31634359f71286bed6ec74a850d0 /gtk/gtkframe.c | |
parent | b0616c82252ccfd3064dd23fbd9352c343b1ca05 (diff) | |
download | gtk+-a6daba5e78df967258ca8998a8ec535be0746232.tar.gz |
API: Change semantics of gtk_container_get_child_path()
Include the child widget path in the returned path now. This allows
customizing the path of the current widgets - like adding flags to child
widgets (and maybe siblings in the future).
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index 5f201cce18..f0a42ed953 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -384,7 +384,9 @@ gtk_frame_get_path_for_child (GtkContainer *container, path = GTK_CONTAINER_CLASS (gtk_frame_parent_class)->get_path_for_child (container, child); if (child == priv->label_widget) - gtk_widget_path_iter_add_class (path, -1, GTK_STYLE_CLASS_FRAME); + gtk_widget_path_iter_add_class (path, + gtk_widget_path_length (path) - 2, + GTK_STYLE_CLASS_FRAME); return path; } |