[gtk+/wip/baedert/drawing: 6/8] applicationwindow: Remove some useless queue_resize calls
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 6/8] applicationwindow: Remove some useless queue_resize calls
- Date: Wed, 12 Jul 2017 11:26:01 +0000 (UTC)
commit b4eb1f509e79eda5c5efc6009338e6c4f3cdb271
Author: Timm Bäder <mail baedert org>
Date: Wed Jul 12 08:14:15 2017 +0200
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 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index daa66e3..df4b27b 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));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]