summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-21 23:41:50 +0000
committerRui Matos <tiagomatos@gmail.com>2012-01-09 16:45:44 +0000
commita1f72eb06c5f79f5484bdf7b34fef9c46ddc9909 (patch)
treefed112707087c7e5af8b77db4fce9b202f3c3870 /gtk/gtkbutton.c
parent2efa658a416b0c651ef13ae99a601d52841e69fd (diff)
downloadgtk+-a1f72eb06c5f79f5484bdf7b34fef9c46ddc9909.tar.gz
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.
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index d0d905f7ae..f6474f353b 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1701,6 +1701,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,