Problem with toggle menu items in a component



Hi,

I tried the following:
in a ui file:
<cmd name="foo_cmd".../>
<menuitem name="foo_cmd" verb="" type="toggle"/>

and in the C source file:
static BonoboUIVerb verbs[] = {
	BONOBO_UI_VERB ("foo_cmd", on_foo_cb),
	BONOBO_UI_VERB_END
};

bonobo_ui_component_add_verb_list_with_data(uic, gcp_verbs, control);

When the control is loaded in a container (nautilus), the menu appears
but the callback is never called. If I remove type="toggle", the
callback is called but, of course, I have not the toggle item i would
like. Is it a bug? Or is ther something I don't understand?

Best regard

Jean




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]