~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/3.0.0.0rc1

« back to all changes in this revision

Viewing changes to Messaging-Menu/src/applet-init.c

  • Committer: Kees Cook
  • Date: 2011-08-11 23:17:39 UTC
  • mfrom: (20.1.1 cairo-dock-plug-ins)
  • Revision ID: kees@outflux.net-20110811231739-cteedan51tmdg77v
Tags: 2.4.0~0beta2-0ubuntu1
releasing version 2.4.0~0beta2-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "applet-init.h"
28
28
 
29
29
 
30
 
CD_APPLET_DEFINITION (N_("Messaging Menu"),
 
30
CD_APPLET_DEFINE_BEGIN (N_("Messaging Menu"),
31
31
        2, 2, 0,
32
32
        CAIRO_DOCK_CATEGORY_APPLET_INTERNET,
33
33
        N_("A menu that notices you about new messages from Mail or Chat applications.\n"
34
34
        "It handles Evolution, Pidgin, Empathy, etc"),
35
35
        "Fabounet")
 
36
        CD_APPLET_DEFINE_COMMON_APPLET_INTERFACE
 
37
        CD_APPLET_ALLOW_EMPTY_TITLE
 
38
CD_APPLET_DEFINE_END
36
39
 
37
40
 
38
41
//\___________ Here is where you initiate your applet. myConfig is already set at this point, and also myIcon, myContainer, myDock, myDesklet (and myDrawContext if you're in dock mode). The macro CD_APPLET_MY_CONF_FILE and CD_APPLET_MY_KEY_FILE can give you access to the applet's conf-file and its corresponding key-file (also available during reload). If you're in desklet mode, myDrawContext is still NULL, and myIcon's buffers has not been filled, because you may not need them then (idem when reloading).