~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/984054

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-10 00:05:57 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810000557-pfxoz5w7hbyclcqh
Tags: 2.2.0~0beta4-0ubuntu1
* New Upstream Version (LP: #614625)
* Fixed a few bugs on LP:
 - LP: #483963: Dustbin applet does not display trashes on all volumes
 - LP: #485159: Some apps have problem with Systray
 - LP: #500677: ~/.xsession-errors is too much used by CD
 - LP: #500979: Shortcuts: the order gets messed up
 - LP: #521531: Mail: crashes on Maildir
 - LP: #519915: GTG: create a new applet to control GTG
 - LP: #526138: GMenu doesn't handle desktop file exec strings properly
 - LP: #531317: CMake: Added an error if the prefix of 'cairo-dock-plugins'
                 is not the same 'cairo-dock-core'
 - LP: #531319: CMake: check the version of 'cairo-dock' when building
                 'cairo-dock-plugins'
 - LP: #537115: Click at the position where icon lavel was, the icon
                 and dock still receive the event
 - LP: #537943: Terminal applet shortkey behaviour
 - LP: #538637: Trash applet doesn't create .trashinfo files on XFCE
 - More details on the 'ChangeLog' file
* debian/rules:
 - Autotools has been replaced by CMake
 - cdbs is now used.
* debian/copyright:
 - Updated with the new applets
* debian/control:
 - Autotools has been replaced by CMake
 - Added libcurl4-gnutls-dev, libindicator-dev, libdbusmenu-glib-dev
   libido-0.1-dev, libical-dev, libdbusmenu-gtk-dev as Build-deps
 - Bump Standard-Version to 3.9.1
 - Wget is required for dnd2share applet
 - Added the exact realease for 'cairo-dock-dev' in order to prevent any
    build error if this package is not already available (thx to didrocks)
* debian/cairo-dock-plug-ins*.install:
 - All sonames are now installed into lib32 or lib64 (lib*)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
 
28
28
CD_APPLET_GET_CONFIG_BEGIN
29
 
        myConfig.bListDrives = CD_CONFIG_GET_BOOLEAN ("Module", "list drives");
30
 
        myConfig.bListNetwork = CD_CONFIG_GET_BOOLEAN ("Module", "list network");
31
 
        myConfig.bListBookmarks = CD_CONFIG_GET_BOOLEAN ("Module", "list bookmarks");
32
 
        myConfig.bUseSeparator = CD_CONFIG_GET_BOOLEAN ("Module", "use separator");
33
 
        
34
 
        myConfig.iDisplayType = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Module", "disk usage", CD_SHOW_USED_SPACE_PERCENT);
35
 
        myConfig.iCheckInterval = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Module", "check interval", 10);
36
 
        myConfig.bDrawBar = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Module", "draw bar", TRUE);
37
 
        
38
 
        myConfig.cRenderer = CD_CONFIG_GET_STRING ("Module", "renderer");
39
 
        myConfig.iDeskletRendererType = CD_CONFIG_GET_INTEGER ("Module", "desklet renderer");
 
29
        CD_CONFIG_RENAME_GROUP ("Module", "Configuration");
 
30
        myConfig.bListDrives = CD_CONFIG_GET_BOOLEAN ("Configuration", "list drives");
 
31
        myConfig.bListNetwork = CD_CONFIG_GET_BOOLEAN ("Configuration", "list network");
 
32
        myConfig.bListBookmarks = CD_CONFIG_GET_BOOLEAN ("Configuration", "list bookmarks");
 
33
        ///myConfig.bUseSeparator = CD_CONFIG_GET_BOOLEAN ("Configuration", "use separator");
 
34
        
 
35
        myConfig.iDisplayType = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "disk usage", CD_SHOW_USED_SPACE_PERCENT);
 
36
        myConfig.iCheckInterval = CD_CONFIG_GET_INTEGER_WITH_DEFAULT ("Configuration", "check interval", 10);
 
37
        myConfig.bDrawBar = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "draw bar", TRUE);
 
38
        
 
39
        myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");
 
40
        myConfig.iDeskletRendererType = CD_CONFIG_GET_INTEGER ("Configuration", "desklet renderer");
40
41
CD_APPLET_GET_CONFIG_END
41
42
 
42
43
 
48
49
void cd_shortcuts_reset_all_datas (CairoDockModuleInstance *myApplet)
49
50
{
50
51
        cd_shortcuts_free_disk_periodic_task (myApplet);
 
52
        
51
53
        cairo_dock_free_task (myData.pTask);
 
54
        if (myData.pIconList != NULL)  // des donnees ont ete recuperees et non utilisees, on les libere.
 
55
        {
 
56
                g_list_foreach (myData.pIconList, (GFunc)g_free, NULL);
 
57
                g_list_free (myData.pIconList);
 
58
                myData.pIconList = NULL;
 
59
        }
52
60
        
53
61
        if (myData.cDisksURI != NULL)
54
62
        {