[gtk+/gtk-style-context: 404/540] Copy GtkWidgetPaths correctly
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 404/540] Copy GtkWidgetPaths correctly
- Date: Fri, 3 Dec 2010 03:10:05 +0000 (UTC)
commit 2404e940d51a4a168c2b075a3a1ae0e1ea19c0cd
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]