[160] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: alignment

daemon@ATHENA.MIT.EDU (Federico Mena)
Thu May 15 12:37:56 1997

Date: Thu, 15 May 1997 11:25:48 -0500
From: Federico Mena <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <337ABD50.5D47E05@aibon.ping.de> (message from Sascha Ziemann on
	Thu, 15 May 1997 09:37:52 +0200)
Reply-to: federico@nuclecu.unam.mx
Resent-From: gtk-list@redhat.com

>  I tried to put a icon, a label and a hot key label in a
>  menuitem. For this I put a hbox in a menuitem and put the three
>  widgets in it with different alignments. I want the icon left, the
>  label left and the hotkey label right. So I set the x alignment of
>  the icon and the label to 0 and that of the hotkey label to 1. But
>  that has not the effect I expected. The icon and the hotkey label
>  are ok (left and right). But the label is centered and a bit
>  shifted left. Anybody here who knows what went wrong?

You shouldn't use a hotkey label; you should rather use a
GtkAcceleratorTable and let the menu handle it.  You can look at the
latest version of gimp/app/gradient.c for an example... if you don't
have it, you can get it from:

	http://www.nuclecu.unam.mx/~federico/gimp/gradient-editor/index.html

  Quartic

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


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