[gtk+] expander: Remove unnecessary redraws
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Remove unnecessary redraws
- Date: Thu, 27 Oct 2016 04:01:28 +0000 (UTC)
commit ac88153f60f62ac287e175e392689d3946c7e8b1
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 19 22:05:20 2016 +0200
expander: Remove unnecessary redraws
gtk/gtkexpander.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 2b6c985..6250d5d 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]