[gtk+/gtk-style-context] Copy GtkWidgetPaths correctly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] Copy GtkWidgetPaths correctly
- Date: Fri, 19 Nov 2010 04:46:54 +0000 (UTC)
commit 7c97d5e61dfe8e6e26ea891a732a5b5d0a32891f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Nov 18 23:35:00 2010 -0500
Copy GtkWidgetPaths correctly
The code was forgetting to copy class information.
gtk/gtkwidgetpath.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidgetpath.c b/gtk/gtkwidgetpath.c
index dfd2afe..88d2b6d 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]