From df7a7488950139e3884972e2363294051e33d45d Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 6 Sep 2015 21:55:35 +0200 Subject: Rework gsettings schema building * Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files --- multiload/Makefile.am | 10 +- .../org.mate.panel.applet.multiload.gschema.xml.in | 125 +++++++++++++++++++++ ...g.mate.panel.applet.multiload.gschema.xml.in.in | 125 --------------------- 3 files changed, 129 insertions(+), 131 deletions(-) create mode 100644 multiload/org.mate.panel.applet.multiload.gschema.xml.in delete mode 100644 multiload/org.mate.panel.applet.multiload.gschema.xml.in.in (limited to 'multiload') diff --git a/multiload/Makefile.am b/multiload/Makefile.am index 4241b48b..2cad698c 100644 --- a/multiload/Makefile.am +++ b/multiload/Makefile.am @@ -30,16 +30,14 @@ mate_multiload_applet_LDADD = \ -lm @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.panel.applet.multiload.gschema.xml +multiload_gschema_in_files = org.mate.panel.applet.multiload.gschema.xml.in +gsettings_SCHEMAS = $(multiload_gschema_in_files:.xml.in=.xml) @GSETTINGS_RULES@ -%.gschema.xml.in: %.gschema.xml.in.in Makefile - $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@ - EXTRA_DIST = \ org.mate.applets.MultiLoadApplet.mate-panel-applet.in.in \ $(service_in_files) \ - $(gsettings_SCHEMAS).in.in \ + $(multiload_gschema_in_files) \ $(ui_DATA) uidir = $(datadir)/mate/ui @@ -66,6 +64,6 @@ org.mate.panel.applet.MultiLoadAppletFactory.service: $(service_in_files) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ $< > $@ -CLEANFILES = $(applet_DATA) $(applet_DATA).in $(service_DATA) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMAS) *.gschema.valid +CLEANFILES = $(applet_DATA) $(applet_DATA).in $(service_DATA) $(gsettings_SCHEMAS) *.gschema.valid -include $(top_srcdir)/git.mk diff --git a/multiload/org.mate.panel.applet.multiload.gschema.xml.in b/multiload/org.mate.panel.applet.multiload.gschema.xml.in new file mode 100644 index 00000000..7ea422ea --- /dev/null +++ b/multiload/org.mate.panel.applet.multiload.gschema.xml.in @@ -0,0 +1,125 @@ + + + + true + Enable CPU load graph + + + false + Enable memory load graph + + + false + Enable network load graph + + + false + Enable swap load graph + + + false + Enable load average graph + + + false + Enable disk load graph + + + 500 + Applet refresh rate in milliseconds + + + 40 + Graph size + For horizontal panels, the width of the graphs in pixels. For vertical panels, this is the height of the graphs. + + + '#0072b3' + Graph color for user-related CPU activity + + + '#0092e6' + Graph color for system-related CPU activity + + + '#00a3ff' + Graph color for nice-related CPU activity + + + '#002f3d' + Graph color for iowait related CPU activity + + + '#000000' + CPU graph background color + + + '#00b35b' + Graph color for user-related memory usage + + + '#00e675' + Graph color for shared memory + + + '#00ff82' + Graph color for buffer memory + + + '#AAF5D0' + Graph color for cached memory + + + '#000000' + Memory graph background color + + + '#fce94f' + Graph color for input network activity + + + '#edd400' + Graph color for output network activity + + + '#c4a000' + Graph color for loopback network usage + + + '#000000' + Network graph background color + + + '#8b00c3' + Graph color for user-related swap usage + + + '#000000' + Swap graph background color + + + '#d50000' + Graph color for load average + + + '#000000' + Load graph background color + + + '#C65000' + Graph color for disk read + + + '#FF6700' + Graph color for disk write + + + '#000000' + Background color for disk load graph + + + 'mate-system-monitor.desktop' + The desktop description file to execute as the system monitor + + + diff --git a/multiload/org.mate.panel.applet.multiload.gschema.xml.in.in b/multiload/org.mate.panel.applet.multiload.gschema.xml.in.in deleted file mode 100644 index 7ea422ea..00000000 --- a/multiload/org.mate.panel.applet.multiload.gschema.xml.in.in +++ /dev/null @@ -1,125 +0,0 @@ - - - - true - Enable CPU load graph - - - false - Enable memory load graph - - - false - Enable network load graph - - - false - Enable swap load graph - - - false - Enable load average graph - - - false - Enable disk load graph - - - 500 - Applet refresh rate in milliseconds - - - 40 - Graph size - For horizontal panels, the width of the graphs in pixels. For vertical panels, this is the height of the graphs. - - - '#0072b3' - Graph color for user-related CPU activity - - - '#0092e6' - Graph color for system-related CPU activity - - - '#00a3ff' - Graph color for nice-related CPU activity - - - '#002f3d' - Graph color for iowait related CPU activity - - - '#000000' - CPU graph background color - - - '#00b35b' - Graph color for user-related memory usage - - - '#00e675' - Graph color for shared memory - - - '#00ff82' - Graph color for buffer memory - - - '#AAF5D0' - Graph color for cached memory - - - '#000000' - Memory graph background color - - - '#fce94f' - Graph color for input network activity - - - '#edd400' - Graph color for output network activity - - - '#c4a000' - Graph color for loopback network usage - - - '#000000' - Network graph background color - - - '#8b00c3' - Graph color for user-related swap usage - - - '#000000' - Swap graph background color - - - '#d50000' - Graph color for load average - - - '#000000' - Load graph background color - - - '#C65000' - Graph color for disk read - - - '#FF6700' - Graph color for disk write - - - '#000000' - Background color for disk load graph - - - 'mate-system-monitor.desktop' - The desktop description file to execute as the system monitor - - - -- cgit v1.2.1