[gtk+/wip/unfocused-fixes: 9/9] Revert "button: Stop setting state flags on the style context for drawing"
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 9/9] Revert "button: Stop setting state flags on the style context for drawing"
- Date: Wed, 21 Dec 2011 23:53:01 +0000 (UTC)
commit cc1b93a4295cbf01dccce5265df518e78bd0dfc5
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Dec 21 23:41:50 2011 +0000
Revert "button: Stop setting state flags on the style context for drawing"
Setting state flags is actually needed here since this function is called by
GtkButton subclasses which add their specific state flags as a parameter.
This reverts commit e868b8d6ea04af6e31d7075d09508689873c0df5.
gtk/gtkbutton.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 3b3b5b2..c5f2d39 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1565,6 +1565,7 @@ _gtk_button_paint (GtkButton *button,
context = gtk_widget_get_style_context (widget);
gtk_style_context_save (context);
+ gtk_style_context_set_state (context, state);
gtk_button_get_props (button, &default_border, &default_outside_border, NULL, NULL, &interior_focus);
gtk_style_context_get_style (context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]