Re: Looking for equivalent function for gtk_signal_connect_object_while_alive ()
- From: Owen Taylor <otaylor redhat com>
- To: <nitin yewale wipro com>
- Cc: "Desktop-Devel-List" <desktop-devel-list gnome org>, <gtk-devel-list gnome org>
- Subject: Re: Looking for equivalent function for gtk_signal_connect_object_while_alive ()
- Date: Wed, 6 Feb 2002 11:21:12 -0500 (EST)
"Nitin Madhukar Yewale" <nitin yewale wipro com> writes:
> Hi,
> I am searching equivalent function for
> gtk_signal_connect_object_while_alive ().
>
> As per GNOME 2.0 description for above function
>
> "These signal connectors are for signals which refer to objects, so they
> must not be called after the object is deleted."
>
> We can't use g_signal_connect_after() function as it applies after
> deletion.
>
> Can we use "g_signal_connect_swapped" function instead of
> gtk_signal_connect_object_while_alive () function ?
>
> Please suggest equivalent function for
> gtk_signal_connect_object_while_alive ().
gulong g_signal_connect_object (gpointer instance,
const gchar *detailed_signal,
GCallback c_handler,
gpointer gobject,
GConnectFlags connect_flags);
In a horrible naming coincidence, g_signal_connect_object() has no relation
to gtk_signal_connect_object(), which was replaced with g_signal_connect_swapped().
Regards,
owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]