diff options
author | Benjamin Otte <otte@redhat.com> | 2015-02-09 22:51:28 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:31 +0100 |
commit | ee91fb71ca5073d30bf7d4f651798d802f7bfa7f (patch) | |
tree | 198153f2cb759d3a114c1d33e2048ac6d3ff6319 /gtk/gtkcsswidgetnode.c | |
parent | b92fe2fa851b5ef61ad3d87fac1cd24babaf216e (diff) | |
download | gtk+-ee91fb71ca5073d30bf7d4f651798d802f7bfa7f.tar.gz |
box: Use CSS nodes instead of widget paths
This is a very simple patch that causes a bunch of overhead. But it
works.
Diffstat (limited to 'gtk/gtkcsswidgetnode.c')
-rw-r--r-- | gtk/gtkcsswidgetnode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcsswidgetnode.c b/gtk/gtkcsswidgetnode.c index e18cdc3127..5c89a98124 100644 --- a/gtk/gtkcsswidgetnode.c +++ b/gtk/gtkcsswidgetnode.c @@ -24,6 +24,8 @@ #include "gtkprivate.h" #include "gtkstylecontextprivate.h" #include "gtkwidgetprivate.h" +/* widgets for special casing go here */ +#include "gtkbox.h" /* When these change we do a full restyling. Otherwise we try to figure out * if we need to change things. */ @@ -173,7 +175,7 @@ typedef GtkWidgetPath * (* GetPathForChildFunc) (GtkContainer *, GtkWidget *); static gboolean widget_needs_widget_path (GtkWidget *widget) { - static GetPathForChildFunc funcs[1]; + static GetPathForChildFunc funcs[2]; GtkWidget *parent; GetPathForChildFunc parent_func; guint i; @@ -182,6 +184,7 @@ widget_needs_widget_path (GtkWidget *widget) { i = 0; funcs[i++] = GTK_CONTAINER_CLASS (g_type_class_ref (GTK_TYPE_CONTAINER))->get_path_for_child; + funcs[i++] = GTK_CONTAINER_CLASS (g_type_class_ref (GTK_TYPE_BOX))->get_path_for_child; g_assert (i == G_N_ELEMENTS (funcs)); } |