Re: none
- From: Maciej Stachowiak <mjs eazel com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: none
- Date: 13 Dec 2000 20:28:40 -0800
Owen Taylor <otaylor redhat com> writes:
>
> If you want weakrefs, and think object data is inconvenient, then
> we should spend the two minutes to port:
>
> void gtk_object_weakref (GtkObject *object,
> GtkDestroyNotify notify,
> gpointer data);
> void gtk_object_weakunref (GtkObject *object,
> GtkDestroyNotify notify,
> gpointer data);
>
> Though note that the only differences between this and
> g_object_set_data_full are a) the presence use of a key, and b)
> the order of the arguments.
The problem with the key is the need to make sure you have a unique
one; perhaps a minor inconvenience. I agree this would be a good move.
> Clarifying that ::destroy is a "disconnect everything" command
> rather than notification of the object being freed or going
> into a "destroyed" state is a major conceptual win for GTK+-2.0.
Conceptual clarity is good, but I think the name of the signal has
more to do with this than what class it belongs to.
How about:
(a) renaming the signal "disconnect" or "drop_references" or
something.
(b) moving it for GtkWidget, if it really only makes sense for
widgets.
(On another note - is there anything at all in GtkObject that
shouldn't be moved to either GObject or GtkWidget?)
Regards,
Maciej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]