[gtk+] testsuite/cssprovider: Use actual existing style property
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testsuite/cssprovider: Use actual existing style property
- Date: Sun, 8 Jan 2017 14:04:07 +0000 (UTC)
commit ad8acdcebfb17bae4fd4d2e83621dafea5088911
Author: Timm Bäder <mail baedert org>
Date: Sun Jan 8 13:10:43 2017 +0100
testsuite/cssprovider: Use actual existing style property
All the style properties in GtkTreeView are gone, so use one from
GtkScrollbar for now.
testsuite/gtk/cssprovider.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/gtk/cssprovider.c b/testsuite/gtk/cssprovider.c
index 0272c6b..da44a03 100644
--- a/testsuite/gtk/cssprovider.c
+++ b/testsuite/gtk/cssprovider.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]