[gtk+] testsuite: Remove extra calls to gtk_style_context_invalidate()



commit 5f83d6188f98b5170ffb626a8166b0e8c4480cc0
Author: Benjamin Otte <otte redhat com>
Date:   Tue Oct 1 15:03:45 2013 +0200

    testsuite: Remove extra calls to gtk_style_context_invalidate()
    
    They aren't needed anymore.

 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 3435ce4..ca52a75 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]