diff options
author | Benjamin Otte <otte@redhat.com> | 2013-10-01 15:03:45 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-10-05 13:57:51 +0200 |
commit | 5f83d6188f98b5170ffb626a8166b0e8c4480cc0 (patch) | |
tree | 82aa7b684b3e628c43fa52ebd3efa8c712fa721e /testsuite | |
parent | ab112a2096288fabe7162009bfff02cad028c530 (diff) | |
download | gtk+-5f83d6188f98b5170ffb626a8166b0e8c4480cc0.tar.gz |
testsuite: Remove extra calls to gtk_style_context_invalidate()
They aren't needed anymore.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/stylecontext.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/testsuite/gtk/stylecontext.c b/testsuite/gtk/stylecontext.c index 3435ce41a1..ca52a75ed0 100644 --- a/testsuite/gtk/stylecontext.c +++ b/testsuite/gtk/stylecontext.c @@ -169,7 +169,6 @@ test_match (void) data = "* { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -177,7 +176,6 @@ test_match (void) "GtkButton { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -186,7 +184,6 @@ test_match (void) "GtkWindow > GtkButton { color: #000 }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -194,7 +191,6 @@ test_match (void) ".button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -203,7 +199,6 @@ test_match (void) ".button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -212,7 +207,6 @@ test_match (void) "GtkWindow GtkButton { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -221,7 +215,6 @@ test_match (void) "GtkWindow .button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -230,7 +223,6 @@ test_match (void) "#mywindow .button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -239,7 +231,6 @@ test_match (void) "GtkWindow#mywindow .button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -248,7 +239,6 @@ test_match (void) "GObject .button { color: #fff }"; gtk_css_provider_load_from_data (provider, data, -1, &error); g_assert_no_error (error); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); g_assert (gdk_rgba_equal (&color, &expected)); @@ -299,7 +289,6 @@ test_style_property (void) GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_USER); - gtk_style_context_invalidate (context); gtk_style_context_get_color (context, GTK_STATE_FLAG_PRELIGHT, &color); gdk_rgba_parse (&expected, "#003"); |