Skip to content

Some window sizing improvements

Benjamin Otte requested to merge wip/otte/end-of-loupe-shouting-match into main

This came out of a long heated discussion in chat, where people argued about how to size windows properly, in particular in the context of image viewers like Loupe.

See the commit messages for details on the actual changes.

For testing, I used a UI file like this with gtk4-builder-tool (using images with different aspect ratios, but larger than my monitor):

<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <object class="GtkWindow">
    <property name="child">
      <object class="GtkPicture">
        <property name="file">4096x4096.png</property>
      </object>
    </property>
  </object>
</interface>
Edited by Benjamin Otte

Merge request reports