style
[psensor.git] / src / cfg.h
index f6c46e3..b3b7999 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2010-2011 wpitchoune@gmail.com
+    Copyright (C) 2010-2011 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 published by
@@ -41,14 +41,28 @@ struct config {
        int sensorlist_position;
 
        int window_decoration_enabled;
-
        int window_keep_below_enabled;
+       int window_restore_enabled;
+       /* Last saved position of the window. */
+       int window_x;
+       int window_y;
+       /* Last saved size of the window. */
+       int window_w;
+       int window_h;
+       /* Last saved position of the window divider. */
+       int window_divider_pos;
 
        int graph_update_interval;
        int graph_monitoring_duration;
 
        int sensor_values_max_length;
        int sensor_update_interval;
+
+       int menu_bar_disabled;
+
+       int unity_launcher_count_disabled;
+
+       int hide_on_startup;
 };
 
 /*
@@ -60,13 +74,13 @@ void config_save(struct config *);
 
 void config_init();
 
-struct color *config_get_sensor_color(char *sensor_name,
-                                     struct color *default_color);
+void config_cleanup();
 
-void config_set_sensor_color(char *sensor_name, struct color *color);
+struct color *config_get_sensor_color(char *, struct color *);
+void config_set_sensor_color(char *, struct color *);
 
 int config_get_sensor_alarm_limit(char *, int);
-void config_set_sensor_alarm_limit(char *sensor_name, int alarm_limit);
+void config_set_sensor_alarm_limit(char *, int);
 
 int config_get_sensor_alarm_enabled(char *);
 void config_set_sensor_alarm_enabled(char *, int);