title: How to force window to keep a specific ratio in GTK+?
body: <p>I have a <code>GtkWindow</code> I'd like to be resizable, but constrained in its ratio proportions. What is the easiest way to achieve that? Should I manually resize it on each <code>configure-event</code>, or is there an easier way to do it?</p>
  
  <p>My widget hierarchy looks like that:</p>
  
  <pre><code>GtkWindow
    GtkBox
      GtkToolbar
      GtkBox
        GtkAspectFrame
  </code></pre>
  
  <hr>
  
  <p>From the answers I got, I tried something like that:</p>
  
  <pre><code>    gh = Gdk.Geometry()
      gh.min_aspect = 0.5
      gh.max_axpect = 0.5
      w.set_geometry_hints(None, gh, Gdk.WindowHints.ASPECT)
  </code></pre>
  
  <p>However, I still can resize my window with any aspect I want. What am I missing?</p>