[SOLVED] Re: Button packing

David Buchan <[email protected]> Wed, 8 May 2013 19:44:23 -0700 (PDT)
Newsgroups gmane.comp.gnome.glade.user
Message-ID <[email protected]>
ok, I think I've got it.

I used a non-homogeneous GtkBox (horizontal) with two fields. I put a button in each field. Then I clicked on the first (left) button and in the Packing field I set Pack Type to "Start." I clicked on the second (right) button and in the Packing field I set Pack Type to "End." I used the defaults for Fill and Expand for the buttons, which were "Yes" and "No", respectively.

That's pretty neat and tidy.  Glade is great.

Dave

________________________________
 From: David Buchan <[email protected]>
To: Glade List <[email protected]> 
Sent: Wednesday, May 8, 2013 4:13 PM
Subject: [Glade-users] Button packing
 


Hi,

I would like to place two buttons in my window. I want one button to be at the left side of the window, and the other at the right side of the window.

I tried putting a GtkBox (horizontal) with 5 columns. I chose 5 so that I'd get the width of buttons I want. Then I put one button in position 0, and the other at position 4.

What I find is that when the window is rendered, it expands the buttons so that each one takes half the window width, filling the entire row.

I tried the same thing with a GtkGrid with 1 row, but had the same result. I've fooled around with every Expand/Fill combination I could think of, but it didn't help.

The solution was to put blank labels in the 3 inner positions. This worked whether I used a GtkBox or GtkGrid. But I can't help feeling like I shouldn't need to put empty labels to make this work.

Ideas?

Dave
_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users

_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users