{
priv->in_button = TRUE;
gtk_button_enter (button);
+
+ if (gtk_widget_get_realized (widget) &&
+ gtk_widget_is_drawable (widget))
+ {
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_notify_state_change (context,
+ gtk_widget_get_window (widget),
+ NULL, GTK_STATE_PRELIGHT,
+ button->in_button);
+ }
}
return FALSE;
{
priv->in_button = FALSE;
gtk_button_leave (button);
+
+ if (gtk_widget_get_realized (widget) &&
+ gtk_widget_is_drawable (widget))
+ {
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (widget);
+ gtk_style_context_notify_state_change (context,
+ gtk_widget_get_window (widget),
+ NULL, GTK_STATE_PRELIGHT,
+ button->in_button);
+ }
}
return FALSE;