Re: signal
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: "Seisdedos Nuñez, Monserrat" <mseisdedos cirsa com>
- Cc: gtk-list gnome org
- Subject: Re: signal
- Date: Mon, 09 Sep 2002 14:20:56 +0300
Seisdedos Nuñez, Monserrat wrote:
ok, i did:
save_exclude_cbt = gtk_check_button_new_with_label (_("Excluir Lista"));
gtk_signal_connect (GTK_OBJECT (save_exclude_cbt), "toggled",
GTK_SIGNAL_FUNC (on_save_exclude_cbt_toggled),
boot_exclude_vbox);
Hmm, you need to save handler from prev. call:
/* gtk+-1.2 */
guint handler = gtk_signal_connect(...);
/* gtk+-2.0 */
gulong handler = gtk_signal_connect(...);
this, return handler=271
when i call:
gtk_signal_handler_block(GTK_OBJECT(togglebutton),
And there you have to pass a pointer to object instance from prev. call and
saved handler id:
/* gtk+-1.2, gtk+-2.0 */
gtk_signal_handler_block(GTK_OBJECT(save_exclude_cbt), handler);
By the way, (if you are using gtk+-2.0) why not to use g_signal_* functions
instead of gtk_signal_* ?
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]