Re: Easy way to destroy gtk pixmaps when widget destroyed?
- From: learfox furry ao net
- To: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: Easy way to destroy gtk pixmaps when widget destroyed?
- Date: Sun, 15 Oct 2000 14:07:25 -0700 (PDT)
Is there a way to create a new gtk pixmap and then associate it in some
way with another referanced widget (say a a parented fixed widget), and
then, when the fixed widget is destroyed then so will the gtk pixmap.
Is there a way to have that done? The gtk pixmap will not be used by any
other widget, and its drawn onto the fixed widget with gtk_fixed_put().
gtk_fixed_put() doesn't "draw" the widget onto the GtkFixed, it
adds the widget as a child of the parent widget.
Child widgets are destroyed along with their parent.
So, if you add a GtkPixmap widget to a GtkFixed widget, you don't
need to worry about it any more.
Are you sure? The ref count is 0 for a gtk pixmap widget after
calling gtk_fixed_but() into a fixed widget.
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]