[gtk+] toolbar: Remove gdk_flush() calls



commit 594aae71e5bb750c10e02a384181d67e4d55e6e5
Author: Benjamin Otte <otte redhat com>
Date:   Fri Nov 17 07:51:22 2017 +0100

    toolbar: Remove gdk_flush() calls
    
    It's not 2003 anymore.

 gtk/gtktoolbar.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index b01243f..681ef30 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -144,7 +144,6 @@ struct _GtkToolbarPrivate
   guint            animation : 1;
   guint            is_sliding : 1;
   guint            need_rebuild : 1;  /* whether the overflow menu should be regenerated */
-  guint            need_sync : 1;
   guint            show_arrow : 1;
   guint            style_set     : 1;
 };
@@ -895,12 +894,6 @@ slide_idle_handler (gpointer data)
   GtkToolbarPrivate *priv = toolbar->priv;
   GList *list;
 
-  if (priv->need_sync)
-    {
-      gdk_flush ();
-      priv->need_sync = FALSE;
-    }
-  
   for (list = priv->content; list != NULL; list = list->next)
     {
       ToolbarContent *content = list->data;
@@ -1479,8 +1472,6 @@ gtk_toolbar_size_allocate (GtkWidget           *widget,
                                                &start_allocation,
                                                &goal_allocation,
                                                &alloc);
-
-              priv->need_sync = TRUE;
             }
           else
             {


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