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.
This commit is contained in:
Matthias Clasen 2014-07-21 20:35:59 -04:00
parent 2df06d3490
commit a0566770da

View File

@ -132,6 +132,7 @@ gtk_path_element_copy (GtkPathElement *dest,
dest->type = src->type; dest->type = src->type;
dest->name = src->name; dest->name = src->name;
dest->state = src->state;
if (src->siblings) if (src->siblings)
dest->siblings = gtk_widget_path_ref (src->siblings); dest->siblings = gtk_widget_path_ref (src->siblings);
dest->sibling_index = src->sibling_index; dest->sibling_index = src->sibling_index;