[Gtk-sharp-list] size request getting lost...

Christian Hoff christian_hoff at gmx.net
Mon Feb 23 01:45:06 EST 2009


Have a look at the Size.cs sample in the Gtk# repository. The event
handler shopuld not call SetSizeRequest, but instead modify the
Requisition object in the args param:

static void Size_Requested (object obj, SizeRequestedArgs args)
{
Requisition req = args.Requisition;
Console.WriteLine ("Requesting 100 x 100");
req.Width = req.Height = 100;
args.Requisition = req;
}

Stanis?aw Pitucha schrieb:
> Hi,
> I'm trying to write a gtk.bin that handles size requests, but so far
> they seem to be completely ignored :/
> My code is fairly similar to the Gtk.Bin example. The parent container has



More information about the Gtk-sharp-list mailing list