[gtk+/gtk-3-0] widget: Update path unconditionally in gtk_widget_reset_style()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-0] widget: Update path unconditionally in gtk_widget_reset_style()
- Date: Sun, 27 Mar 2011 01:06:17 +0000 (UTC)
commit 57140a79d3400b768de073377e4618a01ee66480
Author: Benjamin Otte <otte redhat com>
Date: Sun Mar 27 01:53:04 2011 +0100
widget: Update path unconditionally in gtk_widget_reset_style()
Also, don't set the new path twice on the style context.
gtk/gtkwidget.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 6bce6cc..7794c81 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8693,12 +8693,7 @@ _gtk_widget_propagate_screen_changed (GtkWidget *widget,
static void
reset_style_recurse (GtkWidget *widget, gpointer data)
{
- if (widget->priv->context)
- {
- _gtk_widget_update_path (widget);
- gtk_style_context_set_path (widget->priv->context,
- widget->priv->path);
- }
+ _gtk_widget_update_path (widget);
if (GTK_IS_CONTAINER (widget))
gtk_container_forall (GTK_CONTAINER (widget),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]