[Glade-users] SpinButton alignment
Tadej Borovšak
tadeboro at gmail.com
Mon Jul 27 02:39:03 EDT 2009
Hello.
> I have a table and there are spin buttons in its second column. How to make them stick to the left edge of their column?
>
> Now they are just centred and when I resize the window the spin boxes also move.
If you have only spin buttons in second column and all of them are
equal in size, you can make them all not expandable. This way column
will fit perfectly to spin buttons and they won't be resized when
application main windows changes.
Second, more flexible, solution would be to add GtkAlignment around
each GtkSpinButton. This will allow you to control exact size of each
spin button and it's expansion.
I attached sample GtkBuilder files for each method. Hope you'll find
them useful.
--
Tadej Borovšak
00386 (0)40 613 131
tadeboro.blogspot.com
tadeboro at gmail.com
tadej.borovsak at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: align.builder
Type: application/octet-stream
Size: 5474 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/glade-users/attachments/20090727/70e7591b/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shrink.builder
Type: application/octet-stream
Size: 4787 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/glade-users/attachments/20090727/70e7591b/attachment-0001.obj
More information about the Glade-users
mailing list