[gtk+] Unify handling of GtkWindow::resizable property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Unify handling of GtkWindow::resizable property
- Date: Wed, 13 Oct 2010 14:24:36 +0000 (UTC)
commit 9e661ed0e91a5709afcc46cdeaea4d711a885da7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 11 17:23:01 2010 -0400
Unify handling of GtkWindow::resizable property
gtk/gtkwindow.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2a70206..edf58dd 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");
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]