[Glade-devel] Glade and Custom widgets

No, you don't need to do that.

If your widget can calculate its own width & height exactly, it should
do that in the normal size_request/size_allocate class methods, e.g. see
gtklabel.c. You don't need to set the width/height in Glade in this

If your widget is something like a GtkTreeView, where the width & height
is set by the application, you set the Width/Height on the Common tab to
a reasonable *minimum* width/height, and then set the dialog's default
width/height properties to a reasonable default size for the entire
dialog. That way the user can resize the dialog as appropriate.


On Wed, 2004-08-25 at 04:49, Todd Fisher wrote:
Just doing some more digging and was curious if maybe this means it 
necessary to create register properties in the common tab via 



   I'm developing an application using libglade-2.4.  I'm working on a 
custom widget and am having difficulty understand how libglade handles 
custom widgets and height/width_request under the properties tab 
common.  Should my widget recieve a width_request?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]