~cairo-dock-team/cairo-dock-plug-ins/plug-ins

« back to all changes in this revision

Viewing changes to keyboard-indicator/src/applet-notifications.c

  • Committer: Fabounet (Fabrice Rey) - http://cairo-dock.org
  • Date: 2010-01-06 00:43:45 UTC
  • Revision ID: fabounet_fabrice_rey_-_httpcairo-dock.org-20100106004345-2q0knfv2i8eyk3xn
added some debug ENTER/LEAVE + Network-Monitor : few minor changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
37
37
{
 
38
        CD_APPLET_ENTER;
38
39
        int iNumGroup = GPOINTER_TO_INT (data);
39
40
        cd_xkbd_set_group (iNumGroup);
 
41
        CD_APPLET_LEAVE ();
40
42
}
41
43
CD_APPLET_ON_BUILD_MENU_BEGIN
42
44
        GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();