Unify handling of GtkWindow::resizable property

This commit is contained in:
Matthias Clasen 2010-10-11 17:23:01 -04:00
parent b36819957f
commit 9e661ed0e9

View File

@ -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");
}
}
/**