Re: disconnecting callbacks



On Sun, Feb 23, 2003 at 02:46:33AM +0100, who_ami siedziba pl wrote:


hi!


how to disconnect all connected callbacks for a button for "clicked"
signal ?


g_signal_handlers_disconnect_matched() with G_SIGNAL_MATCH_ID as the
match should do the trick.

Use g_signal_lookup("clicked", GTK_TYPE_BUTTON) for the signal id.

See:
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html

   --jkl



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