[846] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Pixmap in a button
daemon@ATHENA.MIT.EDU (Tom Bech)
Tue Aug 26 02:45:12 1997
Date: Tue, 26 Aug 1997 08:46:50 +0200
From: Tom Bech <tomb@ii.uib.no>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Pavel Greenfield wrote:
>
> I know I'm doing something wrong...
> I try to shove a bitmap (*.xpm) into a button according to Ian's tutorial
> but I do not succeed.
> The error I'm getting is this:
>
> ** WARNING **: file gtkpixmap.c: line 95 (gtk_pixmap_set): "val != NULL"
>
> ** WARNING **: file gdkdraw.c: line 202 (gdk_draw_pixmap): "src != NULL"
>
> I use a dialog instead of a window (as in Ian's example). What's the
> fundamental difference anyway?
>
> In fact, I don't understand why the overall window matters at all if I'm
> only trying to stick an innocent little pixmap into an insignificant
> button!
>
> Thanks...
>
> Pavel
>
I posted a patch for this (at least for gtk_pixmap_set()) on
gimp-developer a
while back, search for "pixmap patch" or something. Hint: Take a close
look
at the assert statement in gtp_pixmap_set() (if memory serves me :P )
Tom
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null