Re: Positionning a widget in Table cells

2007-03-23 Thread Jonathan Winterflood
> If the widget is a subclass of GtkMisc, use its methods to
> set the alignment.  Otherwise pack it to a GtkAlignment.  In
> both cases it has to be attached to the table with vertical
> GTK_FILL flag.

Thanks for the fast anwser :)
The widget is
a box, prefilled with some other widgets & some logic, so I used the Alignment.
It works fine :)

Do you know hat the Gtk AnchorType enum is actually used for?

Jonathan
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Positionning a widget in Table cells

2007-03-23 Thread Yeti
On Fri, Mar 23, 2007 at 11:33:31PM +0100, Jonathan Winterflood wrote:
> I'm using a number of custom widgets, packed into a Table in my main window
> One of these ("W") is attached to 2 cells of the first
> column, and others ("a","b","c","m") fill the other cells, like so:
> 
> m m m
> W a b
> W _ b
> c c c
> 
> This Widget is set to shrink vertically, and does exactly so :)
> However, it sits centered in the two cells it's allocated.
> I'd like to anchor the widget to the top of the two cells.

If the widget is a subclass of GtkMisc, use its methods to
set the alignment.  Otherwise pack it to a GtkAlignment.  In
both cases it has to be attached to the table with vertical
GTK_FILL flag.

Yeti

--
http://gwyddion.net/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Positionning a widget in Table cells

2007-03-23 Thread Jonathan Winterflood
Hi all, I'm developping an app w/ gtkmm 2.4.
I'm using a number of custom widgets, packed into a Table in my main window
One of these ("W") is attached to 2 cells of the first
column, and others ("a","b","c","m") fill the other cells, like so:

m m m
W a b
W _ b
c c c

This Widget is set to shrink vertically, and does exactly so :)
However, it sits centered in the two cells it's allocated.
I'd like to anchor the widget to the top of the two cells. I found the
'Gtk:AnchorType' enum, but I can't find any function that use it.
What is the correct way to acheive this?

Thanks a lot,
Jonathan

-- 
 linux, c'est une question de VI ou de MORE
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list