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.
This commit is contained in:
Benjamin Otte 2015-02-08 16:44:11 +01:00
parent ffb410f11e
commit 5edc6d94d1

View File

@ -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);