Problem with toggle menu items in a component
Jean Bréfort <[email protected]> 05 Nov 2003 16:22:07 +0100
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <1068045727.552.17.camel@Newton> |
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