Basic coding question (probably)

From: Date: Thu, 21 Mar 2002 22:32:12 +0000
Subject: Basic coding question (probably)
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1618@lists.php.net to get a copy of this message
I'm connecting multiple signals to a button on the fly during a loop within a function, which is probably all wrong in the first place but appears unavoidable. On the second pass the button regurgitates all the connections it made the first time through, as well as the new set. And the third, ad infinitum ad nauseum. Short of destroying and creating a fresh button (very ugly), I'm currently stuck with disconnecting everything with a lower value than the current handler id - woo, loads of pretty err msgs. Does anyone know of a way I can collect the used handler ids ready to disconnect them at the beginning of the next pass? Or better, a way to identify used handler ids belonging to an object? Script available if anyone's desperate to get a screenful of Gtk-WARNING **: gtk_signal_disconnect(): could not find handler (n)

« previous php.gtk.general (#1618) next »