RE: Help: how to disconnect a signal?

I didn't record the id of the signal and don't know how many functions
conneted. I just want to disconnect all the connected functions.

The thing I need this is I am porting the Motif to GTK.
In the old program, I have a pice of code like:
        Widget widg;
        XtRemoveAllCallbacks(widg, XmNmodifyVerifyCallback);
        XtRemoveAllCallbacks(widg, XmNactivateCallback);


-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Tim Müller
Sent: Thursday, November 20, 2003 4:55 AM
To: gtk-app-devel-list gnome org
Subject: Re: Help: how to disconnect a signal?

On Wednesday 19 November 2003 22:23, Tom Liu wrote:

I want to disconnect all the "clicked" signal from a button. I spend
hour already, don't know how to use the function


I tried: g_object_disconnect (G_OBJECT(w),"clicked") also. Doesn't

gulong id;

id = g_signal_connect(button, "clicked", G_CALLBACK(onButtonClicked),

g_signal_handler_disconnect(button, id);


g_signal_connect(button, "clicked", G_CALLBACK(onButtonClicked), NULL);

g_signal_handlers_disconnect_by_func(button, onButtonClicked, NULL);



gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

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