From 8358817ad16f7e09268229225af135d0fe4162f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 12 Jul 2017 08:14:15 +0200 Subject: [PATCH] applicationwindow: Remove some useless queue_resize calls The gtk_widget_{set_parent,unparent} calls before will already cause a resize when necessary. --- gtk/gtkapplicationwindow.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index daa66e3c7a..df4b27bd0b 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -252,8 +252,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window) { gtk_widget_unparent (window->priv->menubar); window->priv->menubar = NULL; - - gtk_widget_queue_resize (GTK_WIDGET (window)); } if (!have_menubar && should_have_menubar) @@ -267,8 +265,6 @@ gtk_application_window_update_menubar (GtkApplicationWindow *window) window->priv->menubar = gtk_menu_bar_new_from_model (G_MENU_MODEL (combined)); gtk_widget_set_parent (window->priv->menubar, GTK_WIDGET (window)); g_object_unref (combined); - - gtk_widget_queue_resize (GTK_WIDGET (window)); } }