gtk2/gtk/tools
Jonas Ådahl 27077d5be8 gtk/window: Make 'default-size' adapt to configured size
This commit changes the behavior of window size computation and the
default size properties to:

 * The default-width and default-height properties are updated to the
   current window size unless the size is fixed by e.g. being maxmized,
   tiled etc.
 * The compute-size semantics are to just pick the default size, or if
   not adequate, use the measured size, and consequently update the
   default size, unless unresizable.
 * gtk_window_get_size() is removed, what's more likely relevant is the
   gtk_window_get_default_size() which will now contain more sensible
   values.

Various places that used gtk_window_get_size() were updated to use
gtk_window_get_default_size() to remember and restore previous sizes.

This also changes the default value of 'default-width' and
'default-height' from -1 to 0. The gtk builder simplify tool is taught
how to omit when the default size is set to both -1 and 0.
2020-12-07 20:37:29 +01:00
..
encodesymbolic.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gdkpixbufutils.c pixbufutils: Pass calculated height value along 2020-10-14 15:06:13 -04:00
gtk4builder.its Namespace some auxiliary files 2019-04-01 08:30:39 -04:00
gtk4builder.loc Namespace some auxiliary files 2019-04-01 08:30:39 -04:00
gtk4builder.rng builderparser: Allow bind-source without bind-property 2019-08-10 19:01:36 +05:30
gtk-builder-tool-enumerate.c buildable: Rename set_name() to set_buildable_id() 2020-09-26 02:16:05 +02:00
gtk-builder-tool-preview.c buildable: Rename set_name() to set_buildable_id() 2020-09-26 02:16:05 +02:00
gtk-builder-tool-simplify.c gtk/window: Make 'default-size' adapt to configured size 2020-12-07 20:37:29 +01:00
gtk-builder-tool-validate.c builder-tool: Avoid duplicate path prefixes 2020-11-01 23:09:26 -05:00
gtk-builder-tool.c Do not depend on GLib API introduced after 2.66 2020-11-23 12:06:22 +00:00
gtk-builder-tool.h tools: Pass common_cflags to executables 2020-05-19 08:32:33 +02:00
gtk-launch.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gtk-query-settings.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gtkiconcachevalidator.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
meson.build tools: Pass common_cflags to executables 2020-05-19 08:32:33 +02:00
updateiconcache.c Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00