[92] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: Frame around the pixmap in button and color

daemon@ATHENA.MIT.EDU (Peter Mattis)
Mon May 12 02:15:06 1997

To: gtk-list@redhat.com
In-reply-to: Your message of "Sun, 11 May 1997 10:03:39 +0200."
             <33757D5B.4F94A4BA@aibon.ping.de> 
Date: Sun, 11 May 1997 23:07:19 -0700
From: Peter Mattis <petm@scam.XCF.Berkeley.EDU>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Sascha Ziemann writes:
>If I put a pixmap into a button, the pixmap has a small frame at the top
>and at the left but not at the right and bottom.
>
>Is that normal? Is gtk_misc_set_alignment with 0.5 0.5 not enough?

Yes, its normal. Its the way the shadowing works. I think it usually
looks better to put a 2 or 3 pixel border around pixmaps in buttons
using "gtk_misc_set_padding".

>Another problem is the transparent color. I know the RGB values of the
>color in the xpm file and the index of the color. But I need a GTK color
>struct to specify the color. How can I get such a struct from the pixmap
>object I created with pixmap_new_from_xpm?

Huh? The pixmap loading code should handle the transparent color
automatically (with the "transparent_color" argument). Perhaps I'm not
understanding your problem.

Peter

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


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