[gtk+/quartz-integration: 88/108] window: Make non-resizable windows use default size for geometry hints
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 88/108] window: Make non-resizable windows use default size for geometry hints
- Date: Wed, 4 May 2011 06:33:26 +0000 (UTC)
commit 3d0379f3a505a8f23b6cb7a4f7206247a3cfc426
Author: Benjamin Otte <otte redhat com>
Date: Sun May 1 08:47:58 2011 +0200
window: Make non-resizable windows use default size for geometry hints
Previously, we were trying to size them by the default size, but then
setting the minimum size as the geometry hints' minimum and maximum
size.
gtk/gtkwindow.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 18ac3a2..04cad00 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7279,6 +7279,10 @@ gtk_window_compute_hints (GtkWindow *window,
}
}
+ /* Please use a good size for unresizable widgets, not the minimum one. */
+ if (!priv->resizable)
+ gtk_window_guess_default_size (window, &requisition.width, &requisition.height);
+
if (*new_flags & GDK_HINT_MIN_SIZE)
{
if (new_geometry->min_width < 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]