[gtk+/gtk-3-0] widget: Don't call gtk_style_attach() and gtk_style_detach() anymore
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] widget: Don't call gtk_style_attach() and gtk_style_detach() anymore
- Date: Sun, 27 Mar 2011 00:17:24 +0000 (UTC)
commit 2f0c819287953d5aed89598517ac64e392005f7c
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 977f2c3..1f9c76d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7808,14 +7808,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);
}
/**
@@ -10735,7 +10729,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);
}
/*****************************************
@@ -10767,7 +10760,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]