From: Jean-Philippe Orsini Date: Sat, 28 Apr 2012 22:03:43 +0000 (+0000) Subject: renamed the alarmlimit gconf key to alarm/high_thresold X-Git-Tag: v0.8.0.5~358 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=aa25d0740f50cb00a8c4809c8a32e52327bac2ca renamed the alarmlimit gconf key to alarm/high_thresold --- diff --git a/src/cfg.c b/src/cfg.c index c93c7d3..a82883c 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -28,8 +28,8 @@ static const char *KEY_SENSORS = "/apps/psensor/sensors"; static const char *ATT_SENSOR_ALARM_ENABLED = "alarm/enabled"; -/* static const char *ATT_SENSOR_ALARM_HIGH_THRESOLD = "alarm/high_thresold"; */ -/* static const char *ATT_SENSOR_ALARM_LOW_THRESOLD = "alarm/low_thresold"; */ +static const char *ATT_SENSOR_ALARM_HIGH_THRESOLD = "alarm/high_thresold"; +/*static const char *ATT_SENSOR_ALARM_LOW_THRESOLD = "alarm/low_thresold";*/ static const char *ATT_SENSOR_COLOR = "color"; static const char *ATT_SENSOR_ENABLED = "enabled"; static const char *ATT_SENSOR_NAME = "name"; @@ -266,7 +266,7 @@ int config_get_sensor_alarm_high_thresold(const char *sid) int res; char *key; - key = get_sensor_att_key(sid, "alarmlimit"); + key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESOLD); res = gconf_client_get_int(client, key, NULL); free(key); @@ -278,7 +278,7 @@ config_set_sensor_alarm_high_thresold(const char *sid, int thresold) { char *key; - key = get_sensor_att_key(sid, "alarmlimit"); + key = get_sensor_att_key(sid, ATT_SENSOR_ALARM_HIGH_THRESOLD); gconf_client_set_int(client, key, thresold, NULL); free(key); }