Pixmaps and Buttons
| From: | Andrew Buczacki | Date: | Wed, 30 Aug 2006 01:18:37 +0000 |
| Subject: | Pixmaps and Buttons | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7133@lists.php.net to get a copy of this message | ||
I'm trying to make a custom button for an application I'm writing. I have a
button that has a unique shape (also, I want to get rid of that button border).
Anyway, I use shape_combine_mask to create the button shape, and I try to add a
pixmap to it (via button->add($pixmap)). Unfortunately, this produces strange
results. Usually I won't see anything at all, but if I fiddle with boxes and
packing options, I can sometimes get a corner of the pixmap to appear in my
button area. Is this normal? Is there some sort of internal packing in a
GtkButton that would screw up pixmap placement? Does anyone have any tips on
how to make a pixmap a button? Thanks in advance,
Andrew