[159] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] GdkPixmap reuse question...

daemon@ATHENA.MIT.EDU (Michael K. Johnson)
Thu May 15 12:35:38 1997

To: gtk-list@redhat.com
From: "Michael K. Johnson" <johnsonm@redhat.com>
Date: Thu, 15 May 1997 12:16:55 -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


I've modified my create_pixmap_from_file function into a few functions
where you can create a list of 5 GdkPixmap's and re-use that list
as many times as you want to to create gtk pixmaps from the same set
of GdkPixmap's.  I also have destruction functions...  :-)

1)  Is that legal?  Or should different gtk pixmaps have their own
    GdkPixmaps?

2)  Once I've created a gtk pixmap widget, does it copy the GdkPixmap
    or keep a reference to it?  That is, should I destroy the GdkPixmap
    when I've created all the gtk pixmaps, or not?

3)  Ought I to explicitly destroy the GtkPixmap's when all the gtk pixmap
    widgets are gone?

Thanks,

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


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