Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: [...] This sounds like a workable idea as long as it won't alter the allocation request of the child widget. You mean the size-request (aka GtkRequisition) ? Usually a size-request isn't needed on a widget, but you shoulnt allow a widget to have an allocation that is smal

Re: I don't think I need a custom widget

2005-08-03 Thread Greg Breland
On Wed, 2005-08-03 at 13:24, Tristan Van Berkom wrote: > Maybe you should write one custom GtkContainer for each type > of container you need to put those widgets in. > > The problem is really about the container widget and the > allocation it gives to its child, also what child properties > are i

Re: I don't think I need a custom widget

2005-08-03 Thread Tristan Van Berkom
Greg Breland wrote: I'm sure I can handle the display part without a creating a custom widget, but can I handle the interactive part without resorting to creating a new widget based on the GTK widget? I have about 26 different widgets I need to do this for and I don't want to have to create 26 c

I don't think I need a custom widget

2005-08-03 Thread Greg Breland
I want to take various existing GTK widgets and draw boxes around them with handles so they can be interactively sized. The only documentation of this I can find is the GTK manual section on custom widgets and the gtkdial example. However, after reading both I think a full blown custom widget is