To: stalkern2 at tin.it Cc: lablgtk at kaba.or.jp Subject: Re: How do I disconnect all callbacks from a button? In-Reply-To: <200301311901.18801.stalkern2 at tin.it> References: <200301311851.38574.stalkern2 at tin.it> <200301311901.18801.stalkern2@tin.it> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20030203104047F.garrigue at kurims.kyoto-u.ac.jp> Date: Mon, 03 Feb 2003 10:40:47 +0900 From: Jacques Garrigue Lines: 23 From: Stalkern 2 > Actually I'm using > let aConnectionID = > in > aButton #coerce #misc #disconnect aConnectionID This is correct, but you don't need the #coerce call (which does nothing): aButton #misc #disconnect aConnectionID > I'd also like to be able to disconnect *everything* There's no such function in Gtk. The only solution I see is to keep a list of all the signals you connected on an object: let ids = ref [] let aConnectionID = ids := aConnectionID :: !ids Cheers, Jacques