Problem with toggle menu items in a component
- From: Jean Bréfort <jean brefort ac-dijon fr>
- To: "gnome-components-list gnome org" <gnome-components-list gnome org>
- Subject: Problem with toggle menu items in a component
- Date: 05 Nov 2003 16:22:07 +0100
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]