
class TestWidget : Gtk.Widget {
  construct  {
    set_has_window (false);
  }
  //public override void get_preferred_height_for_width (int     width,
                                                       //out int min,
                                                       //out int nat)
  //{
    //min = 1;
    //nat = 10000;
  //}

  public override void get_preferred_height (out int min,
                                             out int nat)
  {
    min = 1;
    nat = 10000;
  }
}


void main (string[] args)
{
  Gtk.init (ref args);
  var window = new Gtk.Window ();
  var stack  = new Gtk.Stack ();

  var child = new TestWidget ();
  stack.add (child);


  window.add (stack);
  window.show_all ();
  Gtk.main ();
}
