[gtk+] GtkWidgetPath: Don't forget to copy the state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkWidgetPath: Don't forget to copy the state
- Date: Tue, 22 Jul 2014 00:37:57 +0000 (UTC)
commit a0566770da6eead8a559b2377231d95ee280954a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 21 20:35:59 2014 -0400
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.
gtk/gtkwidgetpath.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index ba94a7f..b33d23b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]