summaryrefslogtreecommitdiff
path: root/src/smooth_refresh.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-06 14:22:49 -0800
committerStefano Karapetsas <[email protected]>2012-11-06 14:22:49 -0800
commit684e6bb4c072f707a92ce72d85954b5790aaab53 (patch)
treee8a449764975fe5066a67c9275ea73c56a88309b /src/smooth_refresh.h
parent7caef9a314fc9f1fea996d79601d4242286825b1 (diff)
parentf27253b155db8d3c06bf13801c63bdc282da4157 (diff)
downloadmate-system-monitor-684e6bb4c072f707a92ce72d85954b5790aaab53.tar.bz2
mate-system-monitor-684e6bb4c072f707a92ce72d85954b5790aaab53.tar.xz
Merge pull request #10 from NiceandGently/master
port to gsettings
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;