Re: RFC: Reference counts on Gtk2::Tooltips



On Mon, 5 May 2003, muppet wrote:

it's not a bug, it's feature.  no, really!

short version:
--------------
   should $tooltips->set_tip ($widget, ...) save a reference to $tooltips
   in $widget, or simply document the fact that you have to save the
   $tooltips object or the tooltips don't show up?
<snip />

it is trivial to have the perl wrapper for set_tip keep a reference on the
tooltips object so that it will stay alive; my question is, since it's
behaving as designed, is this subversion the right thing to do?  or should we
simply document the behavior in a "pitfalls" or "gotchas" document?


--
muppet <scott at asofyet dot org>

I think we should document it in the pitfalls document regardless of which solution we choose.  I lean 
towards performing as designed.  It becomes obvious to the programmer that something is wrong (the tooltips 
don't show up) and -- if the programmer is smart -- he/she will RTFM and find the solution.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]