summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-07-21 20:35:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-07-21 20:35:59 -0400
commita0566770da6eead8a559b2377231d95ee280954a (patch)
tree14a307b9eac4850d2f82955c7991ff4e827c8b2c /gtk/gtkwidgetpath.c
parent2df06d3490c3e0b6acbce25d16ef61e693fc2d8c (diff)
downloadgtk+-a0566770da6eead8a559b2377231d95ee280954a.tar.gz
GtkWidgetPath: Don't forget to copy the state
gtk_widget_path_copy was not copying the state of each element. This was showing in "GtkRadioButton:active GtkLabel" not matching in stack switchers.
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r--gtk/gtkwidgetpath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index ba94a7fb2e..b33d23bd8b 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -132,6 +132,7 @@ gtk_path_element_copy (GtkPathElement *dest,
dest->type = src->type;
dest->name = src->name;
+ dest->state = src->state;
if (src->siblings)
dest->siblings = gtk_widget_path_ref (src->siblings);
dest->sibling_index = src->sibling_index;