Hi,
The notes in section 6 of README.plugins show examples of menu entries. An example is:
ext_menubar_add_entry(ext_menu, "TestEntry2", "Test Entry 2",
NULL, menu_cb, <user_data>);
But using this example causes an IntelliSense error in VS indicating there are too many parameters. The extern definition in plugin_if.h is:
WS_DLL_PUBLIC void ext_menubar_add_entry( ext_menu_t * parent_menu, const gchar *label,
const gchar *tooltip, ext_menubar_action_cb callback, gpointer user_data);
The disputed area seems to be that the example indicates a label and a unique name are needed, but the definition shows just a label. Looking at the code it seems that the name is now generated in ext_menubar_add_generic_entry like this:
/* Create unique name, which is used by GTK to provide the menu */
entry->name = g_strdup_printf("%sI%02d", parent->name, parent->item_cnt);
·
Is this a bug in the README.plugins instructions?
·
Should I report it as a bug or are the READMEs maintained in some other way?
Thanks and regards…Paul