[Glade-users] Question about GtkButton

On Tue, 2007-01-30 at 13:46 -0200, alexander miro wrote:

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.


[1] http://bugzilla.gnome.org/show_bug.cgi?id=396311

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]