summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpath.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-11-18 23:35:00 -0500
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:17 +0100
commite1819055b9dbafc890da9dab074e0761e3e8dd4d (patch)
treefffc2386178832b1ac99059e9c7e7e3d5e73014b /gtk/gtkwidgetpath.c
parent49fed3d7d7e7fee0d52321463a20157b0ec4c03c (diff)
downloadgtk+-e1819055b9dbafc890da9dab074e0761e3e8dd4d.tar.gz
Copy GtkWidgetPaths correctly
The code was forgetting to copy class information.
Diffstat (limited to 'gtk/gtkwidgetpath.c')
-rw-r--r--gtk/gtkwidgetpath.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index dfd2afe824..88d2b6dc19 100644
--- a/gtk/gtkwidgetpath.c
+++ b/gtk/gtkwidgetpath.c
@@ -160,6 +160,12 @@ gtk_widget_path_copy (const GtkWidgetPath *path)
g_hash_table_insert (new.regions, key, value);
}
+ if (elem->classes)
+ {
+ new.classes = g_array_new (FALSE, FALSE, sizeof (GQuark));
+ g_array_append_vals (new.classes, elem->classes->data, elem->classes->len);
+ }
+
g_array_append_val (new_path->elems, new);
}