From 9e661ed0e91a5709afcc46cdeaea4d711a885da7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 11 Oct 2010 17:23:01 -0400 Subject: [PATCH] Unify handling of GtkWindow::resizable property --- gtk/gtkwindow.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2a70206539..edf58ddc92 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -7970,14 +7970,19 @@ gtk_window_set_resizable (GtkWindow *window, priv = window->priv; - priv->resizable = (resizable != FALSE); + resizable = (resizable != FALSE); - g_object_notify (G_OBJECT (window), "resizable"); + if (priv->resizable != resizable) + { + priv->resizable = (resizable != FALSE); - if (priv->grip_window != NULL) - update_grip_visibility (window); + if (priv->grip_window != NULL) + update_grip_visibility (window); - gtk_widget_queue_resize_no_redraw (GTK_WIDGET (window)); + gtk_widget_queue_resize_no_redraw (GTK_WIDGET (window)); + + g_object_notify (G_OBJECT (window), "resizable"); + } } /**