[gtk+] gtk-demo: Remove calls to gtk_style_context_reset_widgets()



commit a2e625692e25aa97277dd05670a2e9c49c07b3ee
Author: Benjamin Otte <otte redhat com>
Date:   Tue Oct 31 02:34:25 2017 +0100

    gtk-demo: Remove calls to gtk_style_context_reset_widgets()
    
    Those calls have been unneeded for a long time - since we gained the
    changed signal on the StyleProvider in fact.

 demos/gtk-demo/css_basics.c      |    2 --
 demos/gtk-demo/css_multiplebgs.c |    2 --
 demos/gtk-demo/css_pixbufs.c     |    2 --
 demos/gtk-demo/css_shadows.c     |    2 --
 tests/testboxcss.c               |    2 --
 5 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/demos/gtk-demo/css_basics.c b/demos/gtk-demo/css_basics.c
index 8ac7eb9..f7770b5 100644
--- a/demos/gtk-demo/css_basics.c
+++ b/demos/gtk-demo/css_basics.c
@@ -47,8 +47,6 @@ css_text_changed (GtkTextBuffer  *buffer,
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
   gtk_css_provider_load_from_data (provider, text, -1);
   g_free (text);
-
-  gtk_style_context_reset_widgets (gdk_screen_get_default ());
 }
 
 static void
diff --git a/demos/gtk-demo/css_multiplebgs.c b/demos/gtk-demo/css_multiplebgs.c
index 920109c..1f5adbc 100644
--- a/demos/gtk-demo/css_multiplebgs.c
+++ b/demos/gtk-demo/css_multiplebgs.c
@@ -47,8 +47,6 @@ css_text_changed (GtkTextBuffer  *buffer,
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
   gtk_css_provider_load_from_data (provider, text, -1);
   g_free (text);
-
-  gtk_style_context_reset_widgets (gdk_screen_get_default ());
 }
 
 static void
diff --git a/demos/gtk-demo/css_pixbufs.c b/demos/gtk-demo/css_pixbufs.c
index 1309094..cb315aa 100644
--- a/demos/gtk-demo/css_pixbufs.c
+++ b/demos/gtk-demo/css_pixbufs.c
@@ -46,8 +46,6 @@ css_text_changed (GtkTextBuffer  *buffer,
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
   gtk_css_provider_load_from_data (provider, text, -1);
   g_free (text);
-
-  gtk_style_context_reset_widgets (gdk_screen_get_default ());
 }
 
 static void
diff --git a/demos/gtk-demo/css_shadows.c b/demos/gtk-demo/css_shadows.c
index bbc6e5f..374f8a2 100644
--- a/demos/gtk-demo/css_shadows.c
+++ b/demos/gtk-demo/css_shadows.c
@@ -45,8 +45,6 @@ css_text_changed (GtkTextBuffer  *buffer,
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
   gtk_css_provider_load_from_data (provider, text, -1);
   g_free (text);
-
-  gtk_style_context_reset_widgets (gdk_screen_get_default ());
 }
 
 static void
diff --git a/tests/testboxcss.c b/tests/testboxcss.c
index 3926d5b..e4309ac 100644
--- a/tests/testboxcss.c
+++ b/tests/testboxcss.c
@@ -83,8 +83,6 @@ css_text_changed (GtkTextBuffer  *buffer,
   text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
   gtk_css_provider_load_from_data (provider, text, -1);
   g_free (text);
-
-  gtk_style_context_reset_widgets (gdk_screen_get_default ());
 }
 
 static void


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