35
35
//\___________ Define here the entries you want to add to the menu when the user right-clicks on your icon or on its subdock or your desklet. The icon and the container that were clicked are available through the macros CD_APPLET_CLICKED_ICON and CD_APPLET_CLICKED_CONTAINER. CD_APPLET_CLICKED_ICON may be NULL if the user clicked in the container but out of icons. The menu where you can add your entries is available throught the macro CD_APPLET_MY_MENU; you can add sub-menu to it if you want.
36
36
static void _select_group (GtkMenuItem *menu_item, gpointer *data)
38
39
int iNumGroup = GPOINTER_TO_INT (data);
39
40
cd_xkbd_set_group (iNumGroup);
41
43
CD_APPLET_ON_BUILD_MENU_BEGIN
42
44
GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();