/* Update interval of the measures of the sensors */
static const char *KEY_SENSOR_UPDATE_INTERVAL
-= "/apps/psensor/sensor/update_interval";
+= "sensor-update-interval";
/* Graph settings */
static const char *KEY_GRAPH_UPDATE_INTERVAL = "graph-update-interval";
c->slog_interval = config_get_slog_interval();
c->sensor_update_interval
- = gconf_client_get_int(client, KEY_SENSOR_UPDATE_INTERVAL, NULL);
+ = get_int(KEY_SENSOR_UPDATE_INTERVAL);
if (c->sensor_update_interval < 1)
c->sensor_update_interval = 1;
set_int(KEY_GRAPH_MONITORING_DURATION, c->graph_monitoring_duration);
- gconf_client_set_int(client,
- KEY_SENSOR_UPDATE_INTERVAL,
- c->sensor_update_interval, NULL);
+ set_int(KEY_SENSOR_UPDATE_INTERVAL, c->sensor_update_interval);
set_bool(KEY_INTERFACE_MENU_BAR_DISABLED, c->menu_bar_disabled);
<long>Vertical position of the graph window.</long>
</locale>
</schema>
+
+ <schema>
+ <key>/schemas/apps/psensor/sensor/update_interval</key>
+ <applyto>/apps/psensor/sensor/update_interval</applyto>
+ <owner>psensor</owner>
+ <type>int</type>
+ <default>2</default>
+ <locale name="C">
+ <short>Update interface of the sensor values</short>
+ <long>Update interface of the sensor values.</long>
+ </locale>
+ </schema>
</schemalist>
</gconfschemafile>