~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to shortcuts/src/applet-disk-usage.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
{
35
35
        static struct statfs sts;
36
36
        const gchar *cMountPath = (strncmp (cDiskURI, "file://", 7) == 0 ? cDiskURI + 7 : cDiskURI);
37
 
        //g_print ("checking device on '%s'...\n", cMountPath);
38
37
        
39
38
        if (statfs (cMountPath, &sts) == 0)
40
39
        {
66
65
        for (ic = pIconsList; ic != NULL; ic = ic->next)
67
66
        {
68
67
                pIcon = ic->data;
69
 
                if (pIcon->iType != CD_DRIVE_GROUP)  // les disques sont en 1er
 
68
                if (pIcon->iGroup != CD_DRIVE_GROUP)  // les disques sont en 1er
70
69
                        break;
71
70
                if (pIcon->cCommand != NULL)
72
71
                {
143
142
        }
144
143
}
145
144
 
146
 
void cd_shortcuts_stop_disk_periodic_task (CairoDockModuleInstance *myApplet)
147
 
{
148
 
        cairo_dock_stop_task (myData.pDiskTask);
149
 
}
150
 
 
151
145
void cd_shortcuts_free_disk_periodic_task (CairoDockModuleInstance *myApplet)
152
146
{
153
 
        cd_shortcuts_stop_disk_periodic_task (myApplet);
154
147
        cairo_dock_free_task (myData.pDiskTask);
155
148
        myData.pDiskTask = NULL;
156
149
}
196
189
        GString *sInfo = g_string_new ("");
197
190
        // on recupere les infos de taille.
198
191
        CDDiskUsage diskUsage;
 
192
        memset (&diskUsage, 0, sizeof (CDDiskUsage));
199
193
        cd_shortcuts_get_fs_stat (cDiskURI, &diskUsage);
200
194
        
201
195
        // on recupere les infos du file system.