[Glade-devel] Glade and Custom widgets
- From: damon karuna uklinux net (Damon Chaplin)
- Subject: [Glade-devel] Glade and Custom widgets
- Date: Tue, 31 Aug 2004 10:48:06 +0100
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
case.
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.
Damon
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
glade_register_custom_prop?
thanks,
-todd
Hi,
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?
thanks,
todd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]