X-Git-Url: http://wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fcfg.c;h=13ea515a311a8db9a37f3ad6d2a31feb4dae1f11;hb=ae573ea0c5328662e711d7717edc835d1a313d58;hp=37048c96c4402336ea76a546fbac1f76100d58f4;hpb=9dc8095432b3733157be0c01a41013e640a75f76;p=psensor.git diff --git a/src/cfg.c b/src/cfg.c index 37048c9..13ea515 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -328,7 +328,7 @@ static void set_slog_interval(int interval) set_int(KEY_SLOG_INTERVAL, interval); } -static bool is_window_decoration_enabled(void) +bool config_is_window_decoration_enabled(void) { return !get_bool(KEY_INTERFACE_WINDOW_DECORATION_DISABLED); } @@ -338,7 +338,7 @@ static bool is_window_keep_below_enabled(void) return get_bool(KEY_INTERFACE_WINDOW_KEEP_BELOW_ENABLED); } -static void set_window_decoration_enabled(bool enabled) +void config_set_window_decoration_enabled(bool enabled) { set_bool(KEY_INTERFACE_WINDOW_DECORATION_DISABLED, !enabled); } @@ -419,7 +419,6 @@ struct config *config_load(void) c->graph_bg_alpha = get_graph_background_alpha(); c->alpha_channel_enabled = is_alpha_channel_enabled(); c->sensorlist_position = get_sensorlist_position(); - c->window_decoration_enabled = is_window_decoration_enabled(); c->window_keep_below_enabled = is_window_keep_below_enabled(); c->slog_enabled = is_slog_enabled(); c->slog_interval = config_get_slog_interval(); @@ -474,7 +473,6 @@ void config_save(const struct config *c) set_foreground_color(c->graph_fgcolor); set_graph_background_alpha(c->graph_bg_alpha); set_sensorlist_position(c->sensorlist_position); - set_window_decoration_enabled(c->window_decoration_enabled); set_window_keep_below_enabled(c->window_keep_below_enabled); set_slog_enabled(c->slog_enabled); set_slog_interval(c->slog_interval);