summaryrefslogtreecommitdiff
path: root/src/smooth_refresh.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/smooth_refresh.h')
-rw-r--r--src/smooth_refresh.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/smooth_refresh.h b/src/smooth_refresh.h
index 29a503f..eed5227 100644
--- a/src/smooth_refresh.h
+++ b/src/smooth_refresh.h
@@ -2,8 +2,7 @@
#define _PROCMAN_SMOOTH_REFRESH
#include <glib.h>
-#include <mateconf/mateconf-client.h>
-
+#include <gio/gio.h>
#include <string>
using std::string;
@@ -22,7 +21,7 @@ public:
@return : initialized SmoothRefresh
*/
- SmoothRefresh();
+ SmoothRefresh(GSettings *a_settings);
~SmoothRefresh();
@@ -54,12 +53,11 @@ private:
unsigned get_own_cpu_usage();
- static void status_changed(MateConfClient *client,
- guint cnxn_id,
- MateConfEntry *entry,
- gpointer user_data);
+ static void status_changed(GSettings *settings,
+ const gchar *key,
+ gpointer user_data);
- void load_mateconf_value(MateConfValue* value = NULL);
+ void load_settings_value(const gchar *key);
/*
fuzzy logic:
@@ -92,6 +90,7 @@ private:
-last_cpu_time: Save last cpu and process times to compute CPU%
*/
+ GSettings *settings;
bool active;
guint connection;
guint interval;