Present Perfect


Picture Gallery
Present Perfect

GNOME HIG question

Filed under: GNOME,Question — Thomas @ 8:20 am

8:20 am

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 ?


  1. GtkSizeGroup

    Comment by anthony — 2008-6-18 @ 8:55 am

  2. Hi Thomas. Maybe you need a GtkSizeGroup.


    Comment by Luca Cavalli — 2008-6-18 @ 8:55 am

  3. GtkSizeGroup is probably what you’re after.

    Comment by James Henstridge — 2008-6-18 @ 9:00 am

  4. 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-6-18 @ 9:05 am

  5. 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-6-18 @ 9:06 am

  6. This is what GtkSizeGroup is for.

    Comment by David Trowbridge — 2008-6-18 @ 9:30 am

  7. GtkSizeGroup SizeGroup Group Group

    Echo echo echo echo


    Comment by James Cape — 2008-6-18 @ 1:22 pm

  8. 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-6-18 @ 3:10 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment