[gtk+] widget: Don't call gtk_style_attach() and gtk_style_detach() anymore



commit 1891b790b3c5eaa8ee6d1754bd5728a603eec15c
Author: Benjamin Otte <otte redhat com>
Date:   Sat Mar 26 21:55:35 2011 +0100

    widget: Don't call gtk_style_attach() and gtk_style_detach() anymore

 gtk/gtkwidget.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 7f09ddf..7f47f1f 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7807,14 +7807,8 @@ gtk_widget_get_parent (GtkWidget *widget)
 void
 gtk_widget_style_attach (GtkWidget *widget)
 {
-  GtkWidgetPrivate *priv;
-
   g_return_if_fail (GTK_IS_WIDGET (widget));
   g_return_if_fail (gtk_widget_get_realized (widget));
-
-  priv = widget->priv;
-
-  priv->style = gtk_style_attach (priv->style, priv->window);
 }
 
 /**
@@ -10736,7 +10730,6 @@ gtk_widget_real_realize (GtkWidget *widget)
       priv->window = gtk_widget_get_parent_window (widget);
       g_object_ref (priv->window);
     }
-  priv->style = gtk_style_attach (priv->style, priv->window);
 }
 
 /*****************************************
@@ -10768,7 +10761,6 @@ gtk_widget_real_unrealize (GtkWidget *widget)
 			  (GtkCallback) gtk_widget_unrealize,
 			  NULL);
 
-  gtk_style_detach (priv->style);
   if (gtk_widget_get_has_window (widget))
     {
       gdk_window_set_user_data (priv->window, NULL);



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