[gtk+/wip/unfocused-fixes: 2/9] widget: Set style flags on the style context when the flags are set
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 2/9] widget: Set style flags on the style context when the flags are set
- Date: Thu, 15 Dec 2011 02:54:45 +0000 (UTC)
commit 85981014230987a1222e5e59c3d8fb3be180980a
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 15 01:29:26 2011 +0000
widget: Set style flags on the style context when the flags are set
This will allow us to simplify most draw methods by not having to explicitly
set the style flags on the context.
gtk/gtkwidget.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 38a8356..969b2b3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -10696,6 +10696,8 @@ gtk_widget_propagate_state (GtkWidget *widget,
if (!gtk_widget_is_sensitive (widget) && gtk_widget_has_grab (widget))
gtk_grab_remove (widget);
+ gtk_style_context_set_state (gtk_widget_get_style_context (widget), new_flags);
+
g_signal_emit (widget, widget_signals[STATE_CHANGED], 0, old_state);
g_signal_emit (widget, widget_signals[STATE_FLAGS_CHANGED], 0, old_flags);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]