29
29
CD_APPLET_DEFINITION (N_("Disks"),
31
31
CAIRO_DOCK_CATEGORY_APPLET_SYSTEM,
32
N_("<b><i>monitors disks activity</i></b>.\n\n"
33
"Initial release, a lot more need to be done :\n"
34
" - All disks option\n"
35
" - Pop up showing disks info to know what to add in the list\n"
37
" - Find actions : left, middle click, drop and wheel\n"
38
" - Fill menu with actions\n"
39
" - Editable labels ?\n"
32
N_("<b><i>Monitors disks speed and space</i></b>.\n"
34
"This applet show your disks informations. You can activate both options at once, but they're better separated in 2 or more instances of the applet.\n"
35
"Using both in the same applet can cause problems with the speed display not scaling down.\n"
37
"<b>Disk space</b> : Show disk transfer rates. Up to 10 partitions\n"
38
" You need to configure the mount point of each monitored partition like / or /home\n"
39
" Better seen in a gauge, with 30 or 60s refresh rate and really short or no transition delay.\n"
41
"<b>Disk speed</b> : Show disk transfer rates. Up to 5 disks\n"
42
" You need to configure the name of each monitored disk with his device name like sda or sdb\n"
43
" Better seen in a graph, with 2 or 3s refresh rate and no delay between transitions.\n"
45
"Second release, a lot more need to be done :\n"
46
" <u>Free space :</u>\n"
47
" - Popup with detailed informations.\n"
48
" - Editable labels ?\n"
50
" - All disks option.\n"
51
" - Pop up showing disks info to know what to add in the list.\n"
52
" - Editable labels ?\n"
53
" - Get real block size for disks\n"
55
" - Find actions : left, middle click, drop and wheel.\n"
56
" - Fill menu with actions.\n"
80
97
if (pRenderAttr != NULL) // attributs generiques.
82
99
const gchar *labels[CD_DISKS_NB_MAX_VALUES] = {};
101
if (myConfig.iNumberParts > 0)
104
for (i = 0; i < myConfig.iNumberParts; i++)
106
/// Ca non plus je suppose :)
108
pSize = g_new0 (double, 1);
109
myData.lParts = g_list_append (myData.lParts, pSize);
110
labels[i] = myConfig.cParts[i];
83
114
if (myData.iNumberDisks > 0)
98
129
pRenderAttr->cLabels = (gchar **)labels;
99
130
pRenderAttr->iLatencyTime = myConfig.iCheckInterval * 1000 * myConfig.fSmoothFactor;
100
pRenderAttr->iNbValues = 2 * myData.iNumberDisks;
101
pRenderAttr->bUpdateMinMax = TRUE;
131
pRenderAttr->iNbValues = myConfig.iNumberParts + 2 * myData.iNumberDisks;
133
/// Problem here : should be FALSE for size and TRUE for speed.
134
/// This version force FALSE when size is monitored, so applets using both monitors
135
/// could have some display problems on speed display.
136
pRenderAttr->bUpdateMinMax = !(myConfig.iNumberParts > 0);
102
138
if (myConfig.iInfoDisplay == CAIRO_DOCK_INFO_ON_ICON)
104
140
pRenderAttr->bWriteValues = TRUE;
155
191
CD_APPLET_ALLOW_NO_CLICKABLE_DESKLET;
158
reset_disks_list (myApplet);
194
cd_disks_reset_parts_list (myApplet);
195
cd_disks_reset_disks_list (myApplet);
160
197
_set_data_renderer (myApplet, TRUE);