forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
63a0ab5e73
commit
4f23dc34be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user