[gnome-system-monitor/gtk3: 12/17] Enabled code and added gsettings schema for openfiles dialog.



commit 97b23cb625d9a415b7d9b29d2e33f8a2fe788d4b
Author: Chris Kühl <chrisk openismus com>
Date:   Tue Feb 8 23:51:48 2011 +0100

    Enabled code and added gsettings schema for openfiles dialog.

 src/openfiles.cpp                                 |    2 +-
 src/org.gnome.gnome-system-monitor.gschema.xml.in |   17 +++++++++++++++++
 src/procman.cpp                                   |    1 -
 3 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index d8c3621..07ad327 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -288,7 +288,7 @@ create_openfiles_tree (ProcData *procdata)
   GTK_SORT_ASCENDING);*/
 #endif
 
-	// procman_get_tree_state (procdata->settings, tree, procman::gconf::open_files_tree_prefix.c_str());
+	procman_get_tree_state (procdata->settings, tree, procman::gconf::open_files_tree_prefix.c_str());
 
 	return tree;
 
diff --git a/src/org.gnome.gnome-system-monitor.gschema.xml.in b/src/org.gnome.gnome-system-monitor.gschema.xml.in
index c76584c..134c2ec 100644
--- a/src/org.gnome.gnome-system-monitor.gschema.xml.in
+++ b/src/org.gnome.gnome-system-monitor.gschema.xml.in
@@ -157,6 +157,7 @@
 	<child name="proctree" schema="org.gnome.gnome-system-monitor.proctree" />
 	<child name="disktreenew" schema="org.gnome.gnome-system-monitor.disktreenew" />
 	<child name="memmapstree" schema="org.gnome.gnome-system-monitor.memmapstree" />
+	<child name="openfilestree" schema="org.gnome.gnome-system-monitor.openfilestree" />
   </schema>
 
   <schema id="org.gnome.gnome-system-monitor.proctree" path="/apps/procman/proctree/">
@@ -458,4 +459,20 @@
 	  </_summary>
 	</key>
   </schema>
+
+  <schema id="org.gnome.gnome-system-monitor.openfilestree" path="/apps/procman/openfilestree/">
+	<key name="sort-col" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Process view sort column
+	  </_summary>
+	</key>
+
+	<key name="sort-order" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Process view sort order
+	  </_summary>
+	</key>
+  </schema>
 </schemalist>
diff --git a/src/procman.cpp b/src/procman.cpp
index cf5aa3b..e9be87b 100644
--- a/src/procman.cpp
+++ b/src/procman.cpp
@@ -462,7 +462,6 @@ procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *chil
 	}			       
 	
 	columns = gtk_tree_view_get_columns (GTK_TREE_VIEW (tree));
-        g_print("%i\n", g_list_length(columns));
 
         if(!g_strcmp0(child_schema, "proctree"))
         {



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