[Glade-users] Question about GtkButton
Tristan Van Berkom
tvb at gnome.org
Tue Jan 30 16:34:52 EST 2007
On Tue, 2007-01-30 at 13:46 -0200, alexander miro wrote:
> Hi,
>
> I have two problems:
>
> First, I've been trying to label a button with "&" character
> without success - nothing is showed on the button's cover.
>
> What I've tried as a label:
>
> &&
> _&
> _&_&
> \&
>
> And, how do I put an image (png) on a button? There
> isn't an option on button's properties!
>
Hi, To add an image, you need only set the GtkButton "type" property
to "container", at which point a placeholder will appear allowing
you to put anything inside your button (for an Image/Label you'll want
to put them into a GtkHBox, you'll also want to put your GtkHBox
into an alignment..).
About the '&' charachter in labels, there was an attempted fix
in Glade 3.0.3 that may or may not fix things for you, there
was yet another fix in svn head (it hasnt yet hit any released
versions yet, the patch was applied from bug 396311 [1]).
Currently I wasnt planning on makeing any other bugfix releases
in the 3.0 series, perhaps I could throw some bugfixes together
and scoop out a 3.0.4 if that would be really popular.
Cheers,
-Tristan
[1] http://bugzilla.gnome.org/show_bug.cgi?id=396311
More information about the Glade-users
mailing list