[gnome-system-monitor/gtk3: 10/19] Preparing for move from gconf to gsettings.



commit 3d1f8a482bc6aa2f539e988f3f16137f6ffb509d
Author: Chris Kühl <chrisk openismus com>
Date:   Fri Jan 28 12:36:44 2011 +0100

    Preparing for move from gconf to gsettings.

 configure.in                                      |    6 +-
 po/POTFILES.in                                    |    1 +
 src/Makefile.am                                   |   13 +-
 src/org.gnome.gnome-system-monitor.gschema.xml.in |  453 +++++++++++++++++++++
 4 files changed, 470 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9726e00..de060fc 100644
--- a/configure.in
+++ b/configure.in
@@ -25,13 +25,13 @@ AC_HEADER_STDC
 GNOME_COMPILE_WARNINGS
 
 GLIB_REQUIRED=2.16.0
-GCONF_REQUIRED=1.1.5
+GCONF_REQUIRED=2.31.1
 LIBWNCK_REQUIRED=2.5.0
 LIBGTOP_REQUIRED=2.23.1
 GTK_REQUIRED=2.20.0
 GNOME_ICON_THEME_REQUIRED=2.15.3
 GTKMM_REQUIRED=2.8
-GIOMM_REQUIRED=2.16.0
+GIOMM_REQUIRED=2.25.0
 GLIBMM_REQUIRED=2.14
 LIBXML_REQUIRED=2.0
 RSVG_REQUIRED=2.12
@@ -66,6 +66,7 @@ dnl CXXFLAGS="-fvisibility-inlines-hidden $CXXFLAGS"
 
 AM_GCONF_SOURCE_2
 
+GLIB_GSETTINGS
 
 GETTEXT_PACKAGE=gnome-system-monitor
 AC_SUBST(GETTEXT_PACKAGE)
@@ -81,6 +82,7 @@ GLIB_DEFINE_LOCALEDIR(PACKAGE_LOCALE_DIR)
 AC_CONFIG_FILES([
 Makefile
 src/Makefile
+src/gnome-system-monitor.schemas
 pixmaps/Makefile
 po/Makefile.in
 help/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index f6b400f..6e229e9 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -9,6 +9,7 @@ src/defaulttable.h
 src/disks.cpp
 src/e_date.c
 src/gnome-system-monitor.schemas.in
+src/org.gnome.gnome-system-monitor.xml.in
 src/gsm_color_button.c
 src/interface.cpp
 src/load-graph.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index 91c81f5..fdabcbe 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -55,8 +55,19 @@ schema_DATA = $(schema_ins:.schemas.in=.schemas)
 EXTRA_DIST = \
 	$(schema_ins)
 
+# GSettings schemas, enum files and conversion file
+gsettings_ENUM_NAMESPACE = org.gnome.gnome-system-monitor
+gsettings_ENUM_FILES = $(top_srcdir)/src/*.h
+gsettings_SCHEMAS = org.gnome.gnome-system-monitor.gschema.xml
+
+ INTLTOOL_XML_NOMERGE_RULE@
+ GSETTINGS_RULES@
+
 CLEANFILES = \
-	$(schema_DATA)
+	$(schema_DATA) 		\
+	$(gsettings_SCHEMAS)
+
+MAINTAINERCLEANFILES = $(gsettings_SCHEMAS:.xml=.valid)
 
 if GCONF_SCHEMAS_INSTALL
 install-data-local:
diff --git a/src/org.gnome.gnome-system-monitor.gschema.xml.in b/src/org.gnome.gnome-system-monitor.gschema.xml.in
new file mode 100644
index 0000000..2b3f823
--- /dev/null
+++ b/src/org.gnome.gnome-system-monitor.gschema.xml.in
@@ -0,0 +1,453 @@
+<schemalist>
+
+  <schema id="org.gnome.gnome-system-monitor" path="/apps/procman/">
+	<key name="width" type="i">
+	  <default>440
+	  </default>
+	  <_summary>Main Window width
+	  </_summary>
+	</key>
+
+	<key name="height" type="i">
+	  <default>495
+	  </default>
+	  <_summary>Main Window height
+	  </_summary>
+	</key>
+
+	<key name="show-tree" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process dependencies in tree form
+	  </_summary>
+	</key>
+
+	<key name="solaris-mode" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Solaris mode for CPU percentage
+	  </_summary>
+	  <_description>If TRUE, system-monitor operates in 'Solaris mode' where a task's cpu usage is divided by the total number of CPUs. Else it operates in 'Irix mode'.
+	  </_description>
+	</key>
+
+	<key name="smooth-refresh" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Enable/Disable smooth refresh
+	  </_summary>
+	</key>
+
+	<key name="kill-dialog" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show warning dialog when killing processes
+	  </_summary>
+	</key>
+
+	<key name="update-interval" type="i">
+	  <default>3000
+	  </default>
+	  <_summary>Time in milliseconds between updates of the process view
+	  </_summary>
+	</key>
+
+	<key name="graph-update-interval" type="i">
+	  <default>1000
+	  </default>
+	  <_summary>Time in milliseconds between updates of the graphs
+	  </_summary>
+	</key>
+
+	<key name="show-all-fs" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Whether information about all filesystems should be displayed
+	  </_summary>
+	  <_description>Whether to display information about all filesystems (including types like 'autofs' and 'procfs'). Useful for getting a list of all currently mounted filesystems.
+	  </_description>
+	</key>
+
+	<key name="disks-interval" type="i">
+	  <default>5000
+	  </default>
+	  <_summary>Time in milliseconds between updates of the devices list
+	  </_summary>
+	</key>
+
+	<key name="view-as" type="i">
+	  <default>1
+	  </default>
+	  <_summary>Determines which processes to show by default. 0 is All, 1 is user, and 2 is active
+	  </_summary>
+	</key>
+
+	<key name="current-tab" type="i">
+	  <default>2
+	  </default>
+	  <_summary>Saves the currently viewed tab
+	  </_summary>
+	  <_description>0 for the System Info, 1 for the processes list, 2 for the resources and 3 for the disks list
+	  </_description>
+	</key>
+
+	<key name="cpu-color0" type="s">
+	  <default>'#FF6E00'
+	  </default>
+	  <_summary>Default graph cpu color
+	  </_summary>
+	</key>
+
+	<key name="cpu-color1" type="s">
+	  <default>'#CB0C29'
+	  </default>
+	  <_summary>Default graph cpu color
+	  </_summary>
+	</key>
+
+	<key name="cpu-color2" type="s">
+	  <default>'#49A835'
+	  </default>
+	  <_summary>Default graph cpu color
+	  </_summary>
+	</key>
+
+	<key name="cpu-color3" type="s">
+	  <default>'#2D7DB3'
+	  </default>
+	  <_summary>Default graph cpu color
+	  </_summary>
+	</key>
+
+	<key name="mem-color" type="s">
+	  <default>'#AB1852'
+	  </default>
+	  <_summary>Default graph mem color
+	  </_summary>
+	</key>
+
+	<key name="swap-color" type="s">
+	  <default>'#49A835'
+	  </default>
+	  <_summary>Default graph swap color
+	  </_summary>
+	</key>
+
+	<key name="net-in-color" type="s">
+	  <default>'#2D7DB3'
+	  </default>
+	  <_summary>Default graph incoming network traffic color
+	  </_summary>
+	</key>
+
+	<key name="net-out-color" type="s">
+	  <default>'#844798'
+	  </default>
+	  <_summary>Default graph outgoing network traffic color
+	  </_summary>
+	</key>
+	<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" />
+  </schema>
+
+  <schema id="org.gnome.gnome-system-monitor.proctree" path="/apps/procman/proctree/">
+	<key name="sort-col" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Process view sort column
+	  </_summary>
+	</key>
+
+	<key name="columns-order" type="ai">
+	  <default>[ 0 ]
+	  </default>
+	  <_summary>Process view columns order
+	  </_summary>
+	</key>
+
+	<key name="sort-order" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Process view sort order
+	  </_summary>
+	</key>
+
+	<key name="col-0-width" type="i">
+	  <default>198
+	  </default>
+	  <_summary>Width of process 'name' column
+	  </_summary>
+	</key>
+
+	<key name="col-0-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'name' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-1-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'owner' column
+	  </_summary>
+	</key>
+
+	<key name="col-1-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'owner' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-2-width" type="i">
+	  <default>37
+	  </default>
+	  <_summary>Width of process 'status' column
+	  </_summary>
+	</key>
+
+	<key name="col-2-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'status' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-3-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'virtual memory' column
+	  </_summary>
+	</key>
+
+	<key name="col-3-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'virtual memory' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-4-width" type="i">
+	  <default>53
+	  </default>
+	  <_summary>Width of process 'resident memory' column
+	  </_summary>
+	</key>
+
+	<key name="col-4-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'resident memory' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-5-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'writable memory' column
+	  </_summary>
+	</key>
+
+	<key name="col-5-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'writable memory' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-6-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'shared memory' column
+	  </_summary>
+	</key>
+
+	<key name="col-6-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'shared memory' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-7-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'X server memory' column
+	  </_summary>
+	</key>
+
+	<key name="col-7-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'X server memory' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-8-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'CPU %' column
+	  </_summary>
+	</key>
+
+	<key name="col-8-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'CPU %' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-9-width" type="i">
+	  <default>50
+	  </default>
+	  <_summary>Width of process 'CPU time' column
+	  </_summary>
+	</key>
+
+	<key name="col-9-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'CPU time' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-10-width" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Width of process 'start time' column
+	  </_summary>
+	</key>
+
+	<key name="col-10-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'start time' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-11-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'nice' column
+	  </_summary>
+	</key>
+
+	<key name="col-11-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'nice' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-12-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'PID' column
+	  </_summary>
+	</key>
+
+	<key name="col-12-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'PID' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-13-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'SELinux security context' column
+	  </_summary>
+	</key>
+
+	<key name="col-13-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'SELinux security context' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-14-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'arguments' column
+	  </_summary>
+	</key>
+
+	<key name="col-14-visible" type="b">
+	  <default>false
+	  </default>
+	  <_summary>Show process 'arguments' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-15-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'estimated memory usage' column
+	  </_summary>
+	</key>
+
+	<key name="col-15-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'estimated memory usage' column on startup
+	  </_summary>
+	</key>
+
+	<key name="col-16-width" type="i">
+	  <default>48
+	  </default>
+	  <_summary>Width of process 'Waiting Channel' column
+	  </_summary>
+	</key>
+
+	<key name="col-16-visible" type="b">
+	  <default>true
+	  </default>
+	  <_summary>Show process 'Waiting Channel' column on startup
+	  </_summary>
+	</key>
+  </schema>
+
+  <schema id="org.gnome.gnome-system-monitor.disktreenew" path="/apps/procman/disktreenew/">
+	<key name="sort-col" type="i">
+	  <default>1
+	  </default>
+	  <_summary>Process view sort column
+	  </_summary>
+	</key>
+
+	<key name="sort-order" type="i">
+	  <default>0
+	  </default>
+	  <_summary>Process view sort order
+	  </_summary>
+	</key>
+
+	<key name="columns-order" type="ai">
+	  <default>[ 0 ]
+	  </default>
+	  <_summary>Disk view columns order
+	  </_summary>
+	</key>
+  </schema>
+
+  <schema id="org.gnome.gnome-system-monitor.memmapstree" path="/apps/procman/memmapstree/">
+	<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>



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