From ac88153f60f62ac287e175e392689d3946c7e8b1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 19 Oct 2016 22:05:20 +0200 Subject: [PATCH] expander: Remove unnecessary redraws --- gtk/gtkexpander.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c index 2b6c985950..6250d5d0e0 100644 --- a/gtk/gtkexpander.c +++ b/gtk/gtkexpander.c @@ -670,19 +670,6 @@ gesture_multipress_released_cb (GtkGestureMultiPress *gesture, gtk_widget_activate (GTK_WIDGET (expander)); } -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) { @@ -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;