Re: bonobo_ui_handler_menu_set_toggle_state




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]