summaryrefslogtreecommitdiff
path: root/src/procman.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/procman.h
parent7caef9a314fc9f1fea996d79601d4242286825b1 (diff)
downloadmate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.bz2
mate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.xz
Port to gesettings
Diffstat (limited to 'src/procman.h')
-rw-r--r--src/procman.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/procman.h b/src/procman.h
index cbf73eb..c44087a 100644
--- a/src/procman.h
+++ b/src/procman.h
@@ -23,8 +23,8 @@
#include <glibmm/refptr.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib.h>
+#include <gio/gio.h>
#include <gtk/gtk.h>
-#include <mateconf/mateconf-client.h>
#include <glibtop/cpu.h>
#include <time.h>
@@ -40,6 +40,8 @@ struct LoadGraph;
#include "smooth_refresh.h"
#include "prettytable.h"
+#define GSM_GSETTINGS_SCHEMA "org.mate.mate-system-monitor"
+
enum
{
ALL_PROCESSES,
@@ -72,8 +74,8 @@ struct ProcConfig
{
gint width;
gint height;
- gboolean show_kill_warning;
- gboolean show_tree;
+ gboolean show_kill_warning;
+ gboolean show_tree;
gboolean show_all_fs;
int update_interval;
int graph_update_interval;
@@ -206,8 +208,8 @@ struct ProcData
PrettyTable pretty_table;
- MateConfClient *client;
- GtkWidget *app;
+ GSettings *settings;
+ GtkWidget *app;
GtkUIManager *menu;
unsigned frequency;
@@ -224,8 +226,8 @@ private:
};
void procman_save_config (ProcData *data);
-void procman_save_tree_state (MateConfClient *client, GtkWidget *tree, const gchar *prefix);
-gboolean procman_get_tree_state (MateConfClient *client, GtkWidget *tree, const gchar *prefix);
+void procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *prefix);
+gboolean procman_get_tree_state (GSettings *settings, GtkWidget *tree, const gchar *prefix);