[935] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Changing pixmaps
daemon@ATHENA.MIT.EDU (Owen Taylor)
Wed Sep 10 12:04:11 1997
To: gtk-list@redhat.com
From: Owen Taylor <owt1@cornell.edu>
Date: 10 Sep 1997 12:05:24 -0400
In-Reply-To: Pavel Greenfield's message of Wed, 10 Sep 1997 11:14:14 -0400 (EDT)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Pavel Greenfield <pavel@riskdevel.ml.com> writes:
> Actually I just realized that I can't figure out much more than the value
> of val in
>
> GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,
> GdkBitmap *mask);
> void gtk_pixmap_set (GtkPixmap *pixmap,
> GdkPixmap *val,
> GdkBitmap *mask);
The val argument to gtk_pixmap_set is just the pixmap argument to
gtk_pixmap_new (it can't be called pixmap, since that's already used
to refer to the GtkPixmap argument)
> Can I use these function to change a pixmap that is already appearing in a
> button, or do I have to completely reassign (following Ian's
> example) pixmapwid to a new value with gtk_pixmap_new() and repack into
> the box? (How would you unpack the previous one, then?)
You should just be able to use gtk_pixmap_set. (To unpack a widget,
use gtk_container_remove.)
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null