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 --- battstat/Makefile.am | 10 ++--- .../org.mate.panel.applet.battstat.gschema.xml.in | 49 ++++++++++++++++++++++ ...rg.mate.panel.applet.battstat.gschema.xml.in.in | 49 ---------------------- 3 files changed, 53 insertions(+), 55 deletions(-) create mode 100644 battstat/org.mate.panel.applet.battstat.gschema.xml.in delete mode 100644 battstat/org.mate.panel.applet.battstat.gschema.xml.in.in (limited to 'battstat') diff --git a/battstat/Makefile.am b/battstat/Makefile.am index 642a128f..648e0789 100644 --- a/battstat/Makefile.am +++ b/battstat/Makefile.am @@ -60,12 +60,10 @@ battstat_applet_LDADD = \ -lm @INTLTOOL_XML_NOMERGE_RULE@ -gsettings_SCHEMAS = org.mate.panel.applet.battstat.gschema.xml +batstat_gschema_in_files = org.mate.panel.applet.battstat.gschema.xml.in +gsettings_SCHEMAS = $(batstat_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' < $< > $@ - appletdir = $(datadir)/mate-panel/applets applet_in_files = org.mate.applets.BattstatApplet.mate-panel-applet.in applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) @@ -87,7 +85,7 @@ org.mate.panel.applet.BattstatAppletFactory.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 uidir = $(datadir)/mate/ui ui_DATA = battstat-applet-menu.xml @@ -97,7 +95,7 @@ EXTRA_DIST = \ $(ui_DATA) \ org.mate.applets.BattstatApplet.mate-panel-applet.in.in \ $(service_in_files) \ - $(gsettings_SCHEMAS).in.in + $(batstat_gschema_in_files) -include $(top_srcdir)/git.mk diff --git a/battstat/org.mate.panel.applet.battstat.gschema.xml.in b/battstat/org.mate.panel.applet.battstat.gschema.xml.in new file mode 100644 index 00000000..7deb8d54 --- /dev/null +++ b/battstat/org.mate.panel.applet.battstat.gschema.xml.in @@ -0,0 +1,49 @@ + + + + 15 + Red value level + The battery level below which the battery is displayed as red. Also the value at which the low battery warning is displayed. + + + false + Warn on low time rather than low percentage + Use the value defined in red_value as a time remaining to show the warning dialog rather than a percentage. + + + true + Low Battery Notification + Notify user when the battery is low. + + + false + Full Battery Notification + Notify user when the battery is full. + + + false + Beep for warnings + Beep when displaying a warning. + + + false + Drain from top + Show the battery meter draining from the top of the battery. Only implemented for traditional battery view. + + + true + Upright (small) battery + Show the upright, smaller battery on the panel. + + + false + Show the horizontal battery + Show the traditional, horizontal battery on the panel. + + + 0 + Show the time/percent label + 0 for no label, 1 for percentage and 2 for time remaining. + + + diff --git a/battstat/org.mate.panel.applet.battstat.gschema.xml.in.in b/battstat/org.mate.panel.applet.battstat.gschema.xml.in.in deleted file mode 100644 index 7ffc06c0..00000000 --- a/battstat/org.mate.panel.applet.battstat.gschema.xml.in.in +++ /dev/null @@ -1,49 +0,0 @@ - - - - 15 - <_summary>Red value level - <_description>The battery level below which the battery is displayed as red. Also the value at which the low battery warning is displayed. - - - false - <_summary>Warn on low time rather than low percentage - <_description>Use the value defined in red_value as a time remaining to show the warning dialog rather than a percentage. - - - true - <_summary>Low Battery Notification - <_description>Notify user when the battery is low. - - - false - <_summary>Full Battery Notification - <_description>Notify user when the battery is full. - - - false - <_summary>Beep for warnings - <_description>Beep when displaying a warning. - - - false - <_summary>Drain from top - <_description>Show the battery meter draining from the top of the battery. Only implemented for traditional battery view. - - - true - <_summary>Upright (small) battery - <_description>Show the upright, smaller battery on the panel. - - - false - <_summary>Show the horizontal battery - <_description>Show the traditional, horizontal battery on the panel. - - - 0 - <_summary>Show the time/percent label - <_description>0 for no label, 1 for percentage and 2 for time remaining. - - - -- cgit v1.2.1