testsuite/cssprovider: Use actual existing style property

All the style properties in GtkTreeView are gone, so use one from
GtkScrollbar for now.
This commit is contained in:
Timm Bäder 2017-01-08 13:10:43 +01:00
parent c392f41bb2
commit ad8acdcebf

View File

@ -33,13 +33,13 @@ test_section_in_style_property (void)
provider = gtk_css_provider_new ();
g_signal_connect (provider, "parsing-error",
G_CALLBACK (assert_section_is_not_null), NULL);
gtk_css_provider_load_from_data (provider, "* { -GtkTreeView:indent-expanders: random garbage goes here; }", -1);
gtk_css_provider_load_from_data (provider, "* { -GtkScrollbar::has-backward-stepper random garbage goes here; }", -1);
widget_class = g_type_class_ref (GTK_TYPE_TREE_VIEW);
pspec = gtk_widget_class_find_style_property (widget_class, "indent-expanders");
widget_class = g_type_class_ref (GTK_TYPE_SCROLLBAR);
pspec = gtk_widget_class_find_style_property (widget_class, "has-backward-stepper");
g_assert (pspec);
path = gtk_widget_path_new ();
gtk_widget_path_append_type (path, GTK_TYPE_TREE_VIEW);
gtk_widget_path_append_type (path, GTK_TYPE_SCROLLBAR);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_style_provider_get_style_property (GTK_STYLE_PROVIDER (provider), path, 0, pspec, &value);