summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-08 16:44:11 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:30 +0100
commit5edc6d94d170c0ca0f674c329bee453bfd2291fe (patch)
tree851506614771e5946062ec34fea8aec8775847ca
parentffb410f11ee032ba8792a5b3c3ee1f739aa8c841 (diff)
downloadgtk+-5edc6d94d170c0ca0f674c329bee453bfd2291fe.tar.gz
widget: Use correct type for widgetpath creation
This is relevant when the widget path is created while the widget is still constructing. G_OBJECT_TYPE(widget) might not point to the final type yet.
-rw-r--r--gtk/gtkwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f5b8510d27..935265837a 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -16314,7 +16314,7 @@ gtk_widget_path_append_for_widget (GtkWidgetPath *path,
g_return_val_if_fail (path != NULL, 0);
g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
- pos = gtk_widget_path_append_type (path, G_OBJECT_TYPE (widget));
+ pos = gtk_widget_path_append_type (path, gtk_css_node_get_widget_type (widget->priv->cssnode));
if (widget->priv->name)
gtk_widget_path_iter_set_name (path, pos, widget->priv->name);