Re: object-aware gmain functions
- From: Soeren Sandmann <sandmann daimi au dk>
- To: James Willcox <jwillcox cs indiana edu>
- Cc: gtk-devel-list gnome org
- Subject: Re: object-aware gmain functions
- Date: 25 Feb 2003 18:28:34 +0100
James Willcox <jwillcox cs indiana edu> writes:
> guint g_object_idle_add (GSourceFunc function, GObject *object);
> guint g_object_timeout_add (guint interval, GSourceFunc function,
> GObject *object);
We would probably also need the _full() versions so that you can set
priorities.
> Patch attached (if people want this, I will add docs, changelog, etc).
> What do you think?
I think it is a good idea, but the patch as attached doesn't really
work if you manually remove the source with g_source_remove. In that
case, the weak reference callback will try to remove a source that no
longer exists or worse, a totally unrelated source (if source id's are
reused, which I don't remember).
Søren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]