diff options
author | Benjamin Otte <otte@redhat.com> | 2016-10-19 22:05:20 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-27 05:07:23 +0200 |
commit | ac88153f60f62ac287e175e392689d3946c7e8b1 (patch) | |
tree | 89f063ca97ad179bd2c39070a6fce3a9e61c353b /gtk | |
parent | 8b76d12f289ef07ddac30c21f330a977d270c5a7 (diff) | |
download | gtk+-ac88153f60f62ac287e175e392689d3946c7e8b1.tar.gz |
expander: Remove unnecessary redraws
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkexpander.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 2b6c985950..6250d5d0e0 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -671,19 +671,6 @@ gesture_multipress_released_cb (GtkGestureMultiPress *gesture, } static void -gtk_expander_redraw_expander (GtkExpander *expander) -{ - GtkAllocation allocation; - GtkWidget *widget = GTK_WIDGET (expander); - - if (gtk_widget_get_realized (widget)) - { - gtk_widget_get_allocation (widget, &allocation); - gdk_window_invalidate_rect (gtk_widget_get_window (widget), &allocation, FALSE); - } -} - -static void update_node_state (GtkExpander *expander) { GtkExpanderPrivate *priv = expander->priv; @@ -753,8 +740,6 @@ gtk_expander_enter_notify (GtkWidget *widget, gtk_widget_set_state_flags (expander->priv->label_widget, GTK_STATE_FLAG_PRELIGHT, FALSE); - - gtk_expander_redraw_expander (expander); } return FALSE; @@ -776,8 +761,6 @@ gtk_expander_leave_notify (GtkWidget *widget, if (expander->priv->label_widget) gtk_widget_unset_state_flags (expander->priv->label_widget, GTK_STATE_FLAG_PRELIGHT); - - gtk_expander_redraw_expander (expander); } return FALSE; |