Re: RFC: Reference counts on Gtk2::Tooltips
- From: "Ross McFarland" <rwmcfa1 neces com>
- To: <gtk-perl-list gnome org>
- Subject: Re: RFC: Reference counts on Gtk2::Tooltips
- Date: Mon, 5 May 2003 14:31:16 -0400 (EDT)
however, that behavior is rather surprising. also, from what i can tell it
is unexpected, since most C code i've seen actually leaks the tooltips
objects so they stay alive by accident.
...
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?
if this is done how do you get rid of the tips, not just disable them. it
would guess that it would require an additional function which is not present
in c that goes through each widget unrefing the pointer to the tips. granted
you probably won't often want to get rid of them.
i vote on doc'ing the behavior as designed.
-rm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]