~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to weblets/src/applet-notifications.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-09-07 02:38:17 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907023817-ish9a53i2wn0m7zg
Tags: 2.2.0~0rc1-0ubuntu1
* New Upstream Version (LP: #632054)
* Fixed a few bugs on LP:
 - LP: #616176 Dust Bin Hang and Incorrect Configuration
 - LP: #604034 Change terminal tab's name lost the color
 - LP: #582452 GMenu does not contain any applications
* Fixed a few bugs on glx-dock forum:
 - Fixed support of GMusicBrowser.
 - AlsaMixer has no emblem.
 - Status-Notifier doesn't be drawed into the dock.
* Updated translations
* debian/control:
 - Added cairo-dock-core as build-depends in order to prevent
   some builds errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
//\___________ 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.
97
97
CD_APPLET_ON_BUILD_MENU_BEGIN
98
98
        gint i = 0;
 
99
        // Main Menu
99
100
        CD_APPLET_ADD_IN_MENU("Reload webpage", _cd_weblets_reload_webpage, CD_APPLET_MY_MENU);
 
101
        // Sub Menu
100
102
        GtkWidget *pSubMenu = CD_APPLET_CREATE_MY_SUB_MENU ();
101
103
        if( myConfig.cListURI != NULL )
102
104
        {
111
113
                        s_pUriList = g_list_prepend (s_pUriList, data);
112
114
                        i++;
113
115
                }
 
116
                CD_APPLET_ADD_SEPARATOR_IN_MENU (pSubMenu);
114
117
        }
115
118
        CD_APPLET_ADD_ABOUT_IN_MENU (pSubMenu);
116
119
CD_APPLET_ON_BUILD_MENU_END