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

« back to all changes in this revision

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

  • Committer: tofe
  • Date: 2008-04-17 17:31:56 UTC
  • Revision ID: svn-v4:620951bb-bb42-0410-82c3-830e739ed170:trunk/plug-ins:847
nouvelle applet weblets: gecko dans un desklet ! (ne marche pas actuellement)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 
 
3
This file is a part of the cairo-dock program, 
 
4
released under the terms of the GNU General Public License.
 
5
 
 
6
Written by Fabrice Rey (for any bug report, please mail me to fabounet@users.berlios.de)
 
7
 
 
8
******************************************************************************/
 
9
 
 
10
#include <string.h>
 
11
#include <cairo-dock.h>
 
12
 
 
13
#include "applet-struct.h"
 
14
#include "applet-config.h"
 
15
 
 
16
CD_APPLET_INCLUDE_MY_VARS
 
17
 
 
18
//\_________________ Here you have to get all your parameters from the conf file. Use the macros CD_CONFIG_GET_BOOLEAN, CD_CONFIG_GET_INTEGER, CD_CONFIG_GET_STRING, etc. myConfig has been reseted to 0 at this point. This function is called at the beginning of init and reload.
 
19
CD_APPLET_GET_CONFIG_BEGIN
 
20
        
 
21
        
 
22
CD_APPLET_GET_CONFIG_END
 
23
 
 
24
 
 
25
//\_________________ Here you have to free all ressources allocated for myConfig. This one will be reseted to 0 at the end of this function. This function is called right before yo get the applet's config, and when your applet is stopped.
 
26
CD_APPLET_RESET_CONFIG_BEGIN
 
27
        
 
28
        
 
29
CD_APPLET_RESET_CONFIG_END
 
30
 
 
31
 
 
32
//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped.
 
33
CD_APPLET_RESET_DATA_BEGIN
 
34
        
 
35
        
 
36
CD_APPLET_RESET_DATA_END