summaryrefslogtreecommitdiff
path: root/testsuite/gtk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-10-04 18:47:05 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commit96d9abded8fc3fdc820d9b9adb82992216687a0a (patch)
tree32921dfdf896dba801b69a24486552b1b362f2c3 /testsuite/gtk
parent2cfa05fc84f591736ff258398f36190f05ebb844 (diff)
downloadgtk+-96d9abded8fc3fdc820d9b9adb82992216687a0a.tar.gz
widget: Remove deprecated style properties
Diffstat (limited to 'testsuite/gtk')
-rw-r--r--testsuite/gtk/cssprovider.c4
-rw-r--r--testsuite/gtk/treeview.c14
2 files changed, 4 insertions, 14 deletions
diff --git a/testsuite/gtk/cssprovider.c b/testsuite/gtk/cssprovider.c
index 413c75087d..8510784fdb 100644
--- a/testsuite/gtk/cssprovider.c
+++ b/testsuite/gtk/cssprovider.c
@@ -33,10 +33,10 @@ 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, "* { -GtkWidget-interior-focus: random garbage goes here; }", -1, NULL);
+ gtk_css_provider_load_from_data (provider, "* { -GtkWidget-window-dragging: random garbage goes here; }", -1, NULL);
widget_class = g_type_class_ref (GTK_TYPE_WIDGET);
- pspec = gtk_widget_class_find_style_property (widget_class, "interior-focus");
+ pspec = gtk_widget_class_find_style_property (widget_class, "window-dragging");
g_assert (pspec);
path = gtk_widget_path_new ();
gtk_widget_path_append_type (path, GTK_TYPE_WIDGET);
diff --git a/testsuite/gtk/treeview.c b/testsuite/gtk/treeview.c
index 0f301d8556..b439dc3fe0 100644
--- a/testsuite/gtk/treeview.c
+++ b/testsuite/gtk/treeview.c
@@ -177,8 +177,7 @@ test_row_separator_height_func (GtkTreeModel *model,
static void
test_row_separator_height (void)
{
- int focus_pad, separator_height, height;
- gboolean wide_separators;
+ int height;
GtkTreeIter iter;
GtkTreePath *path;
GtkListStore *store;
@@ -220,16 +219,7 @@ test_row_separator_height (void)
path, NULL, &cell_rect);
gtk_tree_path_free (path);
- gtk_widget_style_get (tree_view,
- "focus-padding", &focus_pad,
- "wide-separators", &wide_separators,
- "separator-height", &separator_height,
- NULL);
-
- if (wide_separators)
- height = separator_height;
- else
- height = 2;
+ height = 2;
g_assert_cmpint (rect.height, ==, height);
g_assert_cmpint (cell_rect.height, ==, height);