tooltips and refcounts
- From: George <jirka 5z com>
- To: Gtk+ Developers <gtk-devel-list redhat com>
- Subject: tooltips and refcounts
- Date: Mon, 10 Aug 1998 02:14:30 -0700
ok .. this is kind of weird (I think so) ...
adding a tooltip to a widget increases it's refcount ...
this doesn't make sense to me really ... the tooltip doesn't own the widget
but just the opposite ... the tooltip should bind the widgets destroy signal
and die when the object is destroyed ...
I thought refcounts were an owner->slave relationship ...
this tooltip thing actually makes things complicated ... in the panel for
example I have a lot of widgets for which I set tooltips ...
I have put a "set tooltip to NULL function" in the applet clean up code ...
however that code isn't allways called ... for example when I remove a panel
(a drawer) ... I rely on getting the destroy signal from the applet ...
which however never comes .. as when the widget is unparented it still has
a refcount hanging around .. and the widget will stay and eat up ram (plus
I can't do cleanup) .... manually going in and setting all tooltips to NULL
seems like a VERY UGLY solution ...
is there a good reason for the way it is now?
George
--
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
The following implements RSA in perl and is illegal to export from the US:
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]