summaryrefslogtreecommitdiff
path: root/src/smooth_refresh.h
diff options
context:
space:
mode:
authorraveit <[email protected]>2012-11-06 18:19:51 +0100
committerraveit <[email protected]>2012-11-06 18:19:51 +0100
commitf27253b155db8d3c06bf13801c63bdc282da4157 (patch)
treee8a449764975fe5066a67c9275ea73c56a88309b /src/smooth_refresh.h
parent7caef9a314fc9f1fea996d79601d4242286825b1 (diff)
downloadmate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.bz2
mate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.xz
Port to gesettings
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;