title: pyGtk: Image prevents window resize
body: <p>So I am attempting to make a GTK application using python, and I have run into this issue where after I place an image on a window, I can increase the size of the window, but not decrease it. Given that the purpose of this particular window is to display a resizable image, this is rather bothersome.</p>
  
  <p>I have extracted the relevant code which demonstrates this behavior below</p>
  
  <pre><code>#!/usr/bin/env python
  from gi.repository import Gtk, GdkPixbuf
  import sys
  
  class ImageWindow(Gtk.Window):
      def __init__(self, image_data):
          Gtk.Window.__init__(self, title="image test")
          if image_data and len(image_data) &gt; 0:
              self.loader = GdkPixbuf.PixbufLoader()
              self.loader.write(image_data)
              self.pixbuf = self.loader.get_pixbuf()
              self.image = Gtk.Image.new_from_pixbuf(self.pixbuf)
          else:
              self.image = Gtk.Image.new()
          self.add(self.image)
          self.connect('delete-event', Gtk.main_quit)
  
  win = ImageWindow(sys.stdin.read())
  win.show_all()
  Gtk.main()
  </code></pre>
  
  <p>If you pipe in nothing, the window resizes fine. Pipe in an image, and the form clicks to the size of the image, and can resize bigger, but cannot resize smaller.</p>