projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made layout setting dynamic
[psensor.git]
/
src
/
cfg.c
diff --git
a/src/cfg.c
b/src/cfg.c
index
14267dc
..
6ee3b49
100644
(file)
--- a/
src/cfg.c
+++ b/
src/cfg.c
@@
-237,12
+237,12
@@
static void set_alpha_channeld_enabled(bool b)
set_bool(KEY_ALPHA_CHANNEL_ENABLED, b);
}
set_bool(KEY_ALPHA_CHANNEL_ENABLED, b);
}
-
static enum sensorlist_position
get_sensorlist_position(void)
+
enum sensorlist_position config_
get_sensorlist_position(void)
{
return get_int(KEY_INTERFACE_SENSORLIST_POSITION);
}
{
return get_int(KEY_INTERFACE_SENSORLIST_POSITION);
}
-
static void
set_sensorlist_position(enum sensorlist_position pos)
+
void config_
set_sensorlist_position(enum sensorlist_position pos)
{
set_int(KEY_INTERFACE_SENSORLIST_POSITION, pos);
}
{
set_int(KEY_INTERFACE_SENSORLIST_POSITION, pos);
}
@@
-418,7
+418,6
@@
struct config *config_load(void)
c->graph_fgcolor = get_foreground_color();
c->graph_bg_alpha = get_graph_background_alpha();
c->alpha_channel_enabled = is_alpha_channel_enabled();
c->graph_fgcolor = get_foreground_color();
c->graph_bg_alpha = get_graph_background_alpha();
c->alpha_channel_enabled = is_alpha_channel_enabled();
- c->sensorlist_position = get_sensorlist_position();
c->slog_enabled = is_slog_enabled();
c->slog_interval = config_get_slog_interval();
c->slog_enabled = is_slog_enabled();
c->slog_interval = config_get_slog_interval();
@@
-436,11
+435,6
@@
struct config *config_load(void)
if (c->graph_monitoring_duration < 1)
c->graph_monitoring_duration = 10;
if (c->graph_monitoring_duration < 1)
c->graph_monitoring_duration = 10;
- c->unity_launcher_count_disabled
- = get_bool(KEY_INTERFACE_UNITY_LAUNCHER_COUNT_DISABLED);
-
- c->hide_on_startup = get_bool(KEY_INTERFACE_HIDE_ON_STARTUP);
-
c->window_restore_enabled
= get_bool(KEY_INTERFACE_WINDOW_RESTORE_ENABLED);
c->window_restore_enabled
= get_bool(KEY_INTERFACE_WINDOW_RESTORE_ENABLED);
@@
-467,7
+461,6
@@
void config_save(const struct config *c)
set_background_color(c->graph_bgcolor);
set_foreground_color(c->graph_fgcolor);
set_graph_background_alpha(c->graph_bg_alpha);
set_background_color(c->graph_bgcolor);
set_foreground_color(c->graph_fgcolor);
set_graph_background_alpha(c->graph_bg_alpha);
- set_sensorlist_position(c->sensorlist_position);
set_slog_enabled(c->slog_enabled);
set_slog_interval(c->slog_interval);
set_slog_enabled(c->slog_enabled);
set_slog_interval(c->slog_interval);
@@
-477,9
+470,6
@@
void config_save(const struct config *c)
set_int(KEY_SENSOR_UPDATE_INTERVAL, c->sensor_update_interval);
set_int(KEY_SENSOR_UPDATE_INTERVAL, c->sensor_update_interval);
- set_bool(KEY_INTERFACE_UNITY_LAUNCHER_COUNT_DISABLED,
- c->unity_launcher_count_disabled);
-
set_bool(KEY_INTERFACE_HIDE_ON_STARTUP, c->hide_on_startup);
set_bool(KEY_INTERFACE_WINDOW_RESTORE_ENABLED,
set_bool(KEY_INTERFACE_HIDE_ON_STARTUP, c->hide_on_startup);
set_bool(KEY_INTERFACE_WINDOW_RESTORE_ENABLED,