[Glade-users] Adding a xpm to a Button



Jeff Gaskill wrote:

Is there a way to add a Pixmap (xpm) to a standard GTK button
from within Glade?  We are developing and application that will
use the Gnome main window along with many of the Gnome stock
buttons.  These buttons provide a xpm to the left of the button
label.  We would like to replicate this style with other standard
buttons using our own xpm files and labels.  I don't see how
this can be done through Glade.  Glade only allows a label to be
applied to the button.

I'm new to both Glade and GTK development but understood that the
GTKbutton widget allowed you to insert any type of widget in its
container.  If this is possible in raw GTK, is it possible through
Glade.

This is partially covered in the FAQ:

2.3 How do I add a pixmap to a button?

Create a button and select 'Remove Label' from the popup menu.
You can then add any widgets you like to the button, e.g. a horizontal
box
with a pixmap and a label inside it. (Glade may make this even easier
in future.)


However, I don't think it is that simple with Gnome dialog buttons.
I'm not sure.

Damon





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