[gtk+] window: Remove call to gtk_widget_reset_rc_styles()



commit f47f94be427082c526e6b06b7d5edb44a851579f
Author: Benjamin Otte <otte redhat com>
Date:   Tue Apr 2 11:42:54 2013 +0200

    window: Remove call to gtk_widget_reset_rc_styles()
    
    First of all, that call is deprecated. Second, we don't have RC styles
    anymore. Third, what that function does today is invalidate style
    contexts, but that happens automatically when setting the screen on the
    style context later.
    
    So this function is completely unnecessary.

 gtk/gtkwindow.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 0f5e46b..e595845 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -9779,7 +9779,6 @@ gtk_window_set_screen (GtkWindow *window,
 
   gtk_window_free_key_hash (window);
   priv->screen = screen;
-  gtk_widget_reset_rc_styles (widget);
   if (screen != previous_screen)
     {
       if (previous_screen)


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