Re: Help: how to disconnect a signal?
- From: Tim Müller <zen18864 zen co uk>
- To: gtk-app-devel-list gnome org
- Subject: Re: Help: how to disconnect a signal?
- Date: Thu, 20 Nov 2003 09:55:10 +0000
On Wednesday 19 November 2003 22:23, Tom Liu wrote:
I want to disconnect all the "clicked" signal from a button. I spend an
hour already, don't know how to use the function
g_signal_handlers_disconnect_matched
I tried: g_object_disconnect (G_OBJECT(w),"clicked") also. Doesn't work.
gulong id;
id = g_signal_connect(button, "clicked", G_CALLBACK(onButtonClicked), NULL);
g_signal_handler_disconnect(button, id);
or:
g_signal_connect(button, "clicked", G_CALLBACK(onButtonClicked), NULL);
g_signal_handlers_disconnect_by_func(button, onButtonClicked, NULL);
See http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html
Cheers
-Tim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]