[gnome-system-monitor] Save the graph expanders expanded state



commit fc1ec0c38219c345745e8e3222952ede2a221ff2
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Jul 30 03:37:33 2013 +0300

    Save the graph expanders expanded state

 src/interface.cpp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/interface.cpp b/src/interface.cpp
index bb4d54d..044abc2 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -300,13 +300,14 @@ create_sys_view (ProcmanApp *app, GtkBuilder * builder)
     mem_exp = GTK_WIDGET (gtk_builder_get_object (builder, "mem_exp"));
     net_exp = GTK_WIDGET (gtk_builder_get_object (builder, "net_exp"));
 
-    g_object_bind_property(cpu_exp, "expanded", cpu_graph_box, "visible", G_BINDING_DEFAULT);
-    g_object_bind_property(mem_exp, "expanded", mem_graph_box, "visible", G_BINDING_DEFAULT);
-    g_object_bind_property(net_exp, "expanded", net_graph_box, "visible", G_BINDING_DEFAULT);
+    g_object_bind_property(cpu_exp, "expanded", cpu_graph_box, "visible", G_BINDING_SYNC_CREATE);
+    g_object_bind_property(mem_exp, "expanded", mem_graph_box, "visible", G_BINDING_SYNC_CREATE);
+    g_object_bind_property(net_exp, "expanded", net_graph_box, "visible", G_BINDING_SYNC_CREATE);
 
-    g_settings_bind(app->settings, "show-cpu", cpu_exp, "expanded", G_SETTINGS_BIND_GET);
-    g_settings_bind(app->settings, "show-mem", mem_exp, "expanded", G_SETTINGS_BIND_GET);
-    g_settings_bind(app->settings, "show-network", net_exp, "expanded", G_SETTINGS_BIND_GET);
+    g_settings_bind(app->settings, "show-cpu", cpu_exp, "expanded", G_SETTINGS_BIND_DEFAULT);
+    g_settings_bind(app->settings, "show-mem", mem_exp, "expanded", G_SETTINGS_BIND_DEFAULT);
+    g_settings_bind(app->settings, "show-network", net_exp, "expanded", G_SETTINGS_BIND_DEFAULT);
+    
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]