~ubuntu-branches/ubuntu/oneiric/cairo-dock-plug-ins/oneiric-updates

« back to all changes in this revision

Viewing changes to Toons/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:
26
26
#include "applet-init.h"
27
27
 
28
28
 
29
 
CD_APPLET_DEFINITION (N_("Toons"),
 
29
CD_APPLET_DEFINE_BEGIN (N_("Toons"),
30
30
        2, 0, 0,
31
31
        CAIRO_DOCK_CATEGORY_APPLET_FUN,
32
32
        N_("This applet displays a toon that will look at your mouse."),
33
33
        "Fabounet (Fabrice Rey)")
 
34
        CD_APPLET_DEFINE_COMMON_APPLET_INTERFACE
 
35
        CD_APPLET_ALLOW_EMPTY_TITLE
 
36
CD_APPLET_DEFINE_END
 
37
 
34
38
 
35
39
 
36
40
//\___________ 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).