[gtk+] menu: Remove unneeded invalidations



commit 8202d3fe897548bef464a48fdd4a01ee59307453
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 19 22:46:57 2016 +0200

    menu: Remove unneeded invalidations
    
    The gadgets should take care of those themselves

 gtk/gtkmenu.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 6e306ba..a048627 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -3674,9 +3674,6 @@ gtk_menu_handle_scrolling (GtkMenu *menu,
             {
               priv->upper_arrow_state = arrow_state;
               gtk_css_gadget_set_state (priv->top_arrow_gadget, arrow_state);
-
-              gdk_window_invalidate_rect (gtk_widget_get_window (GTK_WIDGET (menu)),
-                                          &rect, FALSE);
             }
         }
     }
@@ -3748,9 +3745,6 @@ gtk_menu_handle_scrolling (GtkMenu *menu,
             {
               priv->lower_arrow_state = arrow_state;
               gtk_css_gadget_set_state (priv->bottom_arrow_gadget, arrow_state);
-
-              gdk_window_invalidate_rect (gtk_widget_get_window (GTK_WIDGET (menu)),
-                                          &rect, FALSE);
             }
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]