GNOME HIG question |
2008-06-18
|
I don't ask enough programming questions, so here goes one.
I have a glade file with a vtable with 3 rows, and each row contains another table, with 2 columns and a bunch of rows. It shows key-value pairs. I've put them in a table so that I can hide table #2 or table #3 in certain conditions.
Now, the second column of each of these tables is not aligned with the other second columns of these tables. Instead, I would like to follow the HIG and "Minimize the number of alignment points in your window" the way is done in this example with "General" and "Action" lining up, or the top 4 dropdown/entry boxes and the icon entry box.
Anyone know how to do this while still allowing me to have 3 separate tables to group my key/values ?
Update: somehow I forgot about GtkSizeGroup (shows me right for hacking at 7 in the morning) and people put me in my place. So, it doesn't look like glade-2 supports this. Anyone know why ? Do I need to write code to read my glade file and put each label in the size group ?
GtkSizeGroup
Comment by anthony — 2008-06-18 @ 08:55
Hi Thomas. Maybe you need a GtkSizeGroup.
Ciao.
Comment by Luca Cavalli — 2008-06-18 @ 08:55
GtkSizeGroup is probably what you’re after.
Comment by James Henstridge — 2008-06-18 @ 09:00
Thomas, please post a screenshot of what you want to do, ’cause I really can’t visualize what you are building. If you show me a shot of what you want to do, I can re-arrange it for you using the HIG.
Comment by Eugenia — 2008-06-18 @ 09:05
If you want to stick to 3 separate tables you can use a GtkSizeGroup to enforce widget sizes such that your columns will align.
Comment by Rob Staudinger — 2008-06-18 @ 09:06
This is what GtkSizeGroup is for.
Comment by David Trowbridge — 2008-06-18 @ 09:30
GtkSizeGroup SizeGroup Group Group
Echo echo echo echo
Cool!
Comment by James Cape — 2008-06-18 @ 13:22
glade-3 doesn’t support them either. I did the tedious task of adding the controls manually to sizegroups in code. It sucks to first do, but once it’s done its not bad.
Would be great to get support into glade for it although i’m not sure how that would be implemented.
Comment by dave foster — 2008-06-18 @ 15:10