[158] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Convenience function create_pixmap_from_file()
daemon@ATHENA.MIT.EDU (Michael K. Johnson)
Thu May 15 10:32:15 1997
To: gtk-list@redhat.com
From: "Michael K. Johnson" <johnsonm@redhat.com>
In-reply-to: Your message of "Thu, 15 May 1997 07:45:12 +0200."
<337AA2E8.8B827A4@aibon.ping.de>
Date: Thu, 15 May 1997 10:30:48 -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Sascha Ziemann writes:
>I don't know which state represents that, when the mouse is hold over
>the button which contains such a pixmap, but the transparent color does
>not become bright. Is it a bug or do I have to do even more for such a
>behaviour?
What are you passing as the parent to get the style from?
Try using it like this:
button = gtk_button_new();
pixmap = create_pixmap_from_file(button, filename);
gtk_container_add (GTK_CONTAINER(button), pixmap);
That works for me.
Also make sure (as I'm sure you are doing) that your pixmap is actually
transparent -- transparent areas should have the color "none".
michaelkjohnson
"Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null