Re: Some questions



>2) There is a way to justify widgets into its container cell? I wish to set 
>my labels to right in the first column of a table, while its matching entries 
>are justified to the left in the second column of that table. I didn't find 
>any function to do that along the hierarchy.

if they are really labels, then since labels are derived from
GtkMisc, use gtk_misc_set_alignment().

>3) Eventually, I'll need a more flexible layout, a "raw" layout that don't 
>care about wigets positions, as positions are set up by hand (i.e. 
>coordinates). I don't worry too much about resizing, but application needs 
>makes deal with container-into-container strategies and such impossible.
>There is some container class I can use? 

GtkFixed. This was designed only to contain non-overlapping widgets,
and all the GtkGod's will suggest use of the Gnome Canvas widget if
they do, but I've found it OK even when they overlap (mostly, anyway).

BTW, I hope your claim about "application needs" is true. I'm involved
in an effort with some similarities to what you describe, and we
realized after a while that the box-packing metaphor used by GTK was
far more robust and useful for an XML GUI specification than one that
used coordinates, even though this seemed far from obvious at the outset.

--p




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