[9104] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: padding on buttons w/text

daemon@ATHENA.MIT.EDU (Blake)
Thu Oct 8 12:45:13 1998

From: Blake <laertes@stab.gemma.com>
To: gtk-list@redhat.com
Date: Thu, 8 Oct 1998 11:48:52 -0600 (GMT+6)
In-Reply-To: <199810080948.JAA27341@dweezil.dyn.ml.org> from "Greg Fall" at Oct 8, 98 09:48:24 am
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

> 
> I'm an absolute beginner.  Played around a little yesterday to get the
> hang of a few things, naturally doing "Hello world" and wondering why
> you can't apparently supply any padding between a button and its label
> when you use button_new_with_label.  I tried using
> gtk_container_border_width with the button as container, but that puts
> the padding outside the button.  Wound up writing my own little function
> for creating a button/label combination that provides padding by parking
> an hbox inside the button and putting the label inside the hbox.  I'm
> not really bent out of shape about this (did it mostly as an exercise),
> but I'm wondering if there's an easy method I've missed, and/or if the
> extra widgets I used for my solution are for any reason a bad idea.

you can use a button as a box, but it isn't a full blown box. However,
putting a container in the child spot makes it so. That is; you did the only
sane thing to so. SOL
 --Blake

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post