~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

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

Tags: upstream-3.0.0.0beta1
ImportĀ upstreamĀ versionĀ 3.0.0.0beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
//\_________________ 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.
28
28
CD_APPLET_GET_CONFIG_BEGIN
29
29
        myConfig.cAnimationName = CD_CONFIG_GET_STRING ("Configuration", "animation");
30
 
        
 
30
        myConfig.cShortkey = CD_CONFIG_GET_STRING ("Configuration", "shortkey");
31
31
CD_APPLET_GET_CONFIG_END
32
32
 
33
33
 
34
34
//\_________________ 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 you get the applet's config, and when your applet is stopped, in the end.
35
35
CD_APPLET_RESET_CONFIG_BEGIN
36
 
        
 
36
        g_free (myConfig.cShortkey);
37
37
CD_APPLET_RESET_CONFIG_END
38
38
 
39
39
//\_________________ 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, in the very end.