diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2010-11-24 03:04:20 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2010-12-04 15:39:41 +0100 |
commit | 9c0ef02ea56acce7232c91994ea4bce1d288893f (patch) | |
tree | ea519be084ef7c9f4e408a02e159b10562a5bf11 /gtk/gtkbutton.c | |
parent | 2f0b5d8a9dd7db30a5ac7a40e4f3587854971782 (diff) | |
download | gtk+-9c0ef02ea56acce7232c91994ea4bce1d288893f.tar.gz |
GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls
There is now code to handle this for one-item widgets (such as GtkButton)
in gtk_widget_set_state_flags()
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 4390424dcb..cbfbdcb072 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -1762,18 +1762,6 @@ gtk_button_enter_notify (GtkWidget *widget, { 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; @@ -1792,18 +1780,6 @@ gtk_button_leave_notify (GtkWidget *widget, { 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; @@ -2292,18 +2268,6 @@ _gtk_button_set_depressed (GtkButton *button, if (depressed != priv->depressed) { - 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_ACTIVE, - depressed); - } - priv->depressed = depressed; gtk_widget_queue_resize (widget); } |