From 594aae71e5bb750c10e02a384181d67e4d55e6e5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 17 Nov 2017 07:51:22 +0100 Subject: [PATCH] toolbar: Remove gdk_flush() calls It's not 2003 anymore. --- gtk/gtktoolbar.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index b01243f938..681ef30504 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 {