Re: bonobo_ui_handler_menu_set_toggle_state
- From: Nat Friedman <nat helixcode com>
- To: Darin Adler <darin eazel com>
- Cc: Gnome Components <gnome-components-list gnome org>
- Subject: Re: bonobo_ui_handler_menu_set_toggle_state
- Date: 21 Mar 2000 03:38:38 -0500
Darin Adler <darin@eazel.com> writes:
> As you said, the same issue comes up in Gtk, and the approach there is that
> the signal is emitted. But a common solution in Gtk is not available, since
> you can only remove and re-add the callback function, without the
> flexibility to block/unblock that signal handlers give.
Right, the reason being that I didn't want to have one GtkObject per
menu/toolbar item. There is a signal, but it is uih-global.
I guess you're right, though; the multiple-listeners situation is
pretty convincing. Now, this is easy to fix:
bonobo_ui_handler_toolbar_block_callback (BonoboUIHandler *uih,
char *path);
bonobo_ui_handler_toolbar_unblock_callback (BonoboUIHandler *uih,
char *path);
etc.
Nat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]