[gtk+] widget: Don't duplicate style context updates



commit d7ca207133c6a31cd899b7ddecdeffd2eedf54a1
Author: Benjamin Otte <otte redhat com>
Date:   Sun Mar 27 01:52:16 2011 +0100

    widget: Don't duplicate style context updates
    
    The screen changes are done in do_screen_change(), the widget path is
    updated in gtk_widget_reset_style().

 gtk/gtkwidget.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2a68fc5..9a6137d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7747,19 +7747,6 @@ gtk_widget_set_parent (GtkWidget *widget,
       gtk_widget_queue_compute_expand (parent);
     }
 
-  if (widget->priv->context)
-    {
-      GdkScreen *screen;
-
-      _gtk_widget_update_path (widget);
-      gtk_style_context_set_path (widget->priv->context, widget->priv->path);
-
-      screen = gtk_widget_get_screen (widget);
-
-      if (screen)
-        gtk_style_context_set_screen (widget->priv->context, screen);
-    }
-
   gtk_widget_pop_verify_invariants (widget);
 }
 



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