summaryrefslogtreecommitdiff
path: root/src/interface.cpp
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/interface.cpp
parent7caef9a314fc9f1fea996d79601d4242286825b1 (diff)
downloadmate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.bz2
mate-system-monitor-f27253b155db8d3c06bf13801c63bdc282da4157.tar.xz
Port to gesettings
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index 96a4c90..b12301b 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -797,12 +797,13 @@ static void
cb_toggle_tree (GtkAction *action, gpointer data)
{
ProcData *procdata = static_cast<ProcData*>(data);
- MateConfClient *client = procdata->client;
+ GSettings *settings = procdata->settings;
gboolean show;
show = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
if (show == procdata->config.show_tree)
return;
- mateconf_client_set_bool (client, "/apps/procman/show_tree", show, NULL);
+ g_settings_set_boolean (settings, "show-tree", show);
}
+