source http://code.google.com/p/ibus-unikey/source/checkout
test code in: 559 - 594 file engine.cpp
property type: 565
you may also check, menu of a menu (add to line 577)
label = ibus_text_new_from_string("test submenu2");
tooltip = ibus_text_new_from_string("use for test");
prop = ibus_property_new("test_sub2",
PROP_TYPE_MENU,
label,
"",
tooltip,
TRUE,
TRUE,
PROP_STATE_UNCHECKED,
unikey->menu_oc); // sample
g_object_unref(label);
g_object_unref(tooltip);
ibus_prop_list_append(a, prop);
--
Lê Quốc Tuấn (zj3t3mju)
http://www.ubuntu-vn.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---