added support of smooth curve setting
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 11 Sep 2014 22:56:54 +0000 (00:56 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 11 Sep 2014 22:56:54 +0000 (00:56 +0200)
src/cfg.h
src/graph.h

index aac38de..9f84e06 100644 (file)
--- a/src/cfg.h
+++ b/src/cfg.h
@@ -19,6 +19,8 @@
 #ifndef _PSENSOR_CONFIG_H_
 #define _PSENSOR_CONFIG_H_
 
+#include <gio/gio.h>
+
 #include <bool.h>
 #include <color.h>
 
@@ -111,6 +113,9 @@ void config_set_slog_enabled_changed_cbk(void (*)(void *), void *);
 
 int config_get_slog_interval();
 
+bool config_is_smooth_curves_enabled();
+void config_set_smooth_curves_enabled(bool);
+
 int config_get_sensor_position(const char *);
 void config_set_sensor_position(const char *, int);
 
@@ -131,4 +136,6 @@ const char *get_psensor_user_dir();
 
 void config_sync();
 
+GSettings *config_get_GSettings();
+
 #endif
index 88d4e0e..713faf3 100644 (file)
 
 #include <gtk/gtk.h>
 
-#include "psensor.h"
-#include "cfg.h"
+#include <cfg.h>
+#include <psensor.h>
+
+extern bool is_smooth_curves_enabled;
 
 void graph_update(struct psensor **sensors,
-                 GtkWidget * w_graph,
+                 GtkWidget *w_graph,
                  struct config *config,
-                 GtkWidget * window);
+                 GtkWidget *window);
 
 #endif