Re: Canvas question: how-to automatically fill it
- From: Federico Mena Quintero <federico redhat com>
- To: aurag crm umontreal ca
- CC: gnome-devel-list gnome org, pygtk daa com au
- Subject: Re: Canvas question: how-to automatically fill it
- Date: Fri, 3 Dec 1999 10:59:02 -0500
> -Make canvas=GnomeCanvas()
> -Now, make canvas.root().add("widget",......)
> -widget=GtkCList which contains text for input.
> -make that widget fill the canvas horizontally ????? HOWT-TO-DO-IT?
The canvas does not have a concept of internal geometry management.
You'll have to resize your widget by yourself, possibly in a
size_allocate handler for the canvas.
> -make the canvas background be widget background color, so that
> viewer has the illusion it's same thing???? HOWTO
In your realize handler for the canvas, change the style's background
to whatever you want it to be. Please see
gnome-libs/libgnomeui/gnome-icon-list.c and the gil_realize() function
for an example.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]