-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Felix Bueltmann <[EMAIL PROTECTED]> writes:
> On Mon, 2005-01-24 at 16:47 +0000, Roger Leigh wrote: >> On Mon, Jan 24, 2005 at 04:49:04PM +0100, Felix Bueltmann wrote: >> >> > Is there a way to change the distance between the buttonborder and the >> > containing widget? I need a button with an image as containing widget, >> > and the distance between this should be max 1 px. >> >> Since a GtkButton derives from GtkContainer, you can use >> >> gtk_container_set_border_width(GTK_CONTAINER(button), width); > > If I do so, it just changes the border between the button and the > widgets next to it. Sorry, my brain wasn't turned on. Put your image in a container (e.g. a GtkHBox), and then set the border width on that container. That should then give you the spacing you want. - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linux http://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/> iD8DBQFB9VthVcFcaSW/uEgRAnORAKDvyhkUF7RUBmkeQe7N0BumK3ASHACglFqn K+/dRpG7P7cjcEb3r8i6vo0= =Oru/ -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list