[Glade-devel] Glade and Custom widgets
- From: taf2 lehigh edu (Todd Fisher)
- Subject: [Glade-devel] Glade and Custom widgets
- Date: Tue, 31 Aug 2004 11:45:25 -0400
Damon Chaplin wrote:
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.
Right so my widget is like a GtkTreeView; and the problem is when I set
a specific width/height in the
common tab in glade my widget does not recieve a size_request with the
values from the common tab. Perhaps,
a better question is how are the width/height values from the common tab
propagated to the custom widget? I
was under the impression a custom widget would recieve a size_request.
But, when I trace my widget it does not
recieve a size_request with the values in the commn tab. So, for now
i've resorted to using the parameters passed
to the widget constructor, int1 and int2.
-Todd
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]