projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed: Fresh install of 1.2.0 complains about missing sensor config keys. (LP :#1650378)
[psensor.git]
/
src
/
cfg.h
diff --git
a/src/cfg.h
b/src/cfg.h
index
2ca0fbf
..
9860aa1
100644
(file)
--- a/
src/cfg.h
+++ b/
src/cfg.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2010-201
4
jeanfi@gmail.com
+ * Copyright (C) 2010-201
6
jeanfi@gmail.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@
-44,9
+44,6
@@
struct config {
bool alpha_channel_enabled;
bool alpha_channel_enabled;
- /* Position of the sensors list table */
- enum sensorlist_position sensorlist_position;
-
bool window_restore_enabled;
/* Last saved position of the window. */
int window_x;
bool window_restore_enabled;
/* Last saved position of the window. */
int window_x;
@@
-63,8
+60,6
@@
struct config {
int sensor_values_max_length;
int sensor_update_interval;
int sensor_values_max_length;
int sensor_update_interval;
- bool unity_launcher_count_disabled;
-
int hide_on_startup;
bool slog_enabled;
int hide_on_startup;
bool slog_enabled;
@@
-81,10
+76,10
@@
void config_cleanup(void);
GdkRGBA *config_get_sensor_color(const char *);
void config_set_sensor_color(const char *, const GdkRGBA *);
GdkRGBA *config_get_sensor_color(const char *);
void config_set_sensor_color(const char *, const GdkRGBA *);
-bool config_get_sensor_alarm_high_threshold(const char *, double *);
+bool config_get_sensor_alarm_high_threshold(const char *, double *
, double
);
void config_set_sensor_alarm_high_threshold(const char *, int);
void config_set_sensor_alarm_high_threshold(const char *, int);
-bool config_get_sensor_alarm_low_threshold(const char *, double *);
+bool config_get_sensor_alarm_low_threshold(const char *, double *
, 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 *);
@@
-154,6
+149,12
@@
void config_set_window_keep_below_enabled(bool);
bool config_is_menu_bar_enabled(void);
void config_set_menu_bar_enabled(bool);
bool config_is_menu_bar_enabled(void);
void config_set_menu_bar_enabled(bool);
+bool config_is_count_visible(void);
+void config_set_count_visible(bool);
+
+enum sensorlist_position config_get_sensorlist_position(void);
+void config_set_sensorlist_position(enum sensorlist_position pos);
+
/*
* Returns the user directory containing psensor data (configuration
* and log).
/*
* Returns the user directory containing psensor data (configuration
* and log).