summaryrefslogtreecommitdiff
path: root/src/interface.cpp
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/interface.cpp
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/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);
}
+