projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
window decoration changes applied immediately
[psensor.git]
/
src
/
cfg.h
diff --git
a/src/cfg.h
b/src/cfg.h
index
c7d764b
..
1d6e777
100644
(file)
--- a/
src/cfg.h
+++ b/
src/cfg.h
@@
-19,7
+19,7
@@
#ifndef _PSENSOR_CONFIG_H_
#define _PSENSOR_CONFIG_H_
#ifndef _PSENSOR_CONFIG_H_
#define _PSENSOR_CONFIG_H_
-#include <g
io/gio
.h>
+#include <g
dk/gdk
.h>
#include <bool.h>
#include <color.h>
#include <bool.h>
#include <color.h>
@@
-47,7
+47,6
@@
struct config {
/* Position of the sensors list table */
enum sensorlist_position sensorlist_position;
/* Position of the sensors list table */
enum sensorlist_position sensorlist_position;
- bool window_decoration_enabled;
bool window_keep_below_enabled;
bool window_restore_enabled;
/* Last saved position of the window. */
bool window_keep_below_enabled;
bool window_restore_enabled;
/* Last saved position of the window. */
@@
-84,13
+83,13
@@
void config_save(const struct config *);
void config_cleanup(void);
void config_cleanup(void);
-
struct color *config_get_sensor_color(const char *sid, const struct colo
r *);
-void config_set_sensor_color(const char *
sid, const struct color
*);
+
GdkRGBA *config_get_sensor_color(const cha
r *);
+void config_set_sensor_color(const char *
, const GdkRGBA
*);
-
int config_get_sensor_alarm_high_threshold(const char
*);
+
bool config_get_sensor_alarm_high_threshold(const char *, double
*);
void config_set_sensor_alarm_high_threshold(const char *, int);
void config_set_sensor_alarm_high_threshold(const char *, int);
-
int config_get_sensor_alarm_low_threshold(const char
*);
+
bool config_get_sensor_alarm_low_threshold(const char *, double
*);
void config_set_sensor_alarm_low_threshold(const char *, int);
bool config_get_sensor_alarm_enabled(const char *);
void config_set_sensor_alarm_low_threshold(const char *, int);
bool config_get_sensor_alarm_enabled(const char *);
@@
-146,6
+145,13
@@
void config_set_nvctrl_enable(bool);
bool config_is_atiadlsdk_enabled(void);
void config_set_atiadlsdk_enable(bool);
bool config_is_atiadlsdk_enabled(void);
void config_set_atiadlsdk_enable(bool);
+int config_get_sensor_unit(void);
+
+double config_get_default_high_threshold_temperature(void);
+
+bool config_is_window_decoration_enabled(void);
+void config_set_window_decoration_enabled(bool);
+
/*
* Returns the user directory containing psensor data (configuration
* and log).
/*
* Returns the user directory containing psensor data (configuration
* and log).