summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-09-06 16:20:20 +0200
committerinfirit <[email protected]>2015-09-06 16:20:20 +0200
commit9ef7e261d4a9ea536d6f467c2b9bd1381bcd73aa (patch)
treee7e9ceb6ea268edfb47c900fd1a427f72059f9bc /applets
parent667466775b7d785ac048732b18efacea09711ab2 (diff)
downloadmate-panel-9ef7e261d4a9ea536d6f467c2b9bd1381bcd73aa.tar.bz2
mate-panel-9ef7e261d4a9ea536d6f467c2b9bd1381bcd73aa.tar.xz
Rework gsettings schema building
* Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/Makefile.am9
-rw-r--r--applets/clock/org.mate.panel.applet.clock.gschema.xml.in88
-rw-r--r--applets/clock/org.mate.panel.applet.clock.gschema.xml.in.in88
-rw-r--r--applets/fish/Makefile.am8
-rw-r--r--applets/fish/org.mate.panel.applet.fish.gschema.xml.in34
-rw-r--r--applets/fish/org.mate.panel.applet.fish.gschema.xml.in.in34
-rw-r--r--applets/wncklet/Makefile.am14
-rw-r--r--applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in24
-rw-r--r--applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in.in24
-rw-r--r--applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in24
-rw-r--r--applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in.in24
11 files changed, 183 insertions, 188 deletions
diff --git a/applets/clock/Makefile.am b/applets/clock/Makefile.am
index 950ecddf..5d1c4bfc 100644
--- a/applets/clock/Makefile.am
+++ b/applets/clock/Makefile.am
@@ -155,16 +155,15 @@ ui_DATA = clock.ui
xmluidir = $(datadir)/mate-panel/ui
xmlui_DATA = clock-menu.xml
-gsettings_SCHEMAS = org.mate.panel.applet.clock.gschema.xml
+clock_gschemas_in = org.mate.panel.applet.clock.gschema.xml.in
+gsettings_SCHEMAS = $(clock_gschemas_in:.xml.in=.xml)
+
@INTLTOOL_XML_NOMERGE_RULE@
@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.panel.ClockApplet.mate-panel-applet.in.in \
- $(gsettings_SCHEMAS).in.in \
+ $(clock_gschemas_in) \
$(xmlui_DATA) \
$(ui_DATA) \
clock-marshallers.list \
diff --git a/applets/clock/org.mate.panel.applet.clock.gschema.xml.in b/applets/clock/org.mate.panel.applet.clock.gschema.xml.in
new file mode 100644
index 00000000..ee1b6902
--- /dev/null
+++ b/applets/clock/org.mate.panel.applet.clock.gschema.xml.in
@@ -0,0 +1,88 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <enum id="org.mate.panel.applet.clock.ClockFormat">
+ <value nick="invalid" value="0"/>
+ <value nick="12-hour" value="1"/>
+ <value nick="24-hour" value="2"/>
+ <value nick="unix" value="3"/>
+ <value nick="internet" value="4"/>
+ <value nick="custom" value="5"/>
+ </enum>
+ <enum id="org.mate.panel.applet.clock.TemperatureUnit">
+ <value nick="Invalid" value="0"/>
+ <value nick="Default" value="1"/>
+ <value nick="Kelvin" value="2"/>
+ <value nick="Centigrade" value="3"/>
+ <value nick="Fahrenheit" value="4"/>
+ </enum>
+ <enum id="org.mate.panel.applet.clock.SpeedUnit">
+ <value nick="Invalid" value="0"/>
+ <value nick="Default" value="1"/>
+ <value nick="m/s" value="2"/>
+ <value nick="km/h" value="3"/>
+ <value nick="mph" value="4"/>
+ <value nick="knots" value="5"/>
+ <value nick="Beaufort scale" value="6"/>
+ </enum>
+ <schema id="org.mate.panel.applet.clock">
+ <key name="format" enum="org.mate.panel.applet.clock.ClockFormat">
+ <default>'24-hour'</default>
+ <summary>Hour format</summary>
+ <description>This key specifies the hour format used by the clock applet. Possible values are "12-hour", "24-hour", "internet", "unix" and "custom". If set to "internet", the clock will display Internet time. The Internet time system divides the day into 1000 ".beats". There are no time zones in this system, so time is the same all over the world. If set to "unix", the clock will display time in seconds since Epoch, i.e. 1970-01-01. If set to "custom", the clock will display time according to the format specified in the custom_format key.</description>
+ </key>
+ <key name="custom-format" type="s">
+ <default>''</default>
+ <summary>Custom format of the clock</summary>
+ <description>This key specifies the format used by the clock applet when the format key is set to "custom". You can use conversion specifiers understood by strftime() to obtain a specific format. See the strftime() manual for more information.</description>
+ </key>
+ <key name="show-seconds" type="b">
+ <default>false</default>
+ <summary>Show time with seconds</summary>
+ <description>If true, display seconds in time.</description>
+ </key>
+ <key name="show-date" type="b">
+ <default>true</default>
+ <summary>Show date in clock</summary>
+ <description>If true, display date in the clock, in addition to time.</description>
+ </key>
+ <key name="show-tooltip" type="b">
+ <default>true</default>
+ <summary>Show date in tooltip</summary>
+ <description>If true, show date in a tooltip when the pointer is over the clock.</description>
+ </key>
+ <key name="show-weather" type="b">
+ <default>true</default>
+ <summary>Show weather in clock</summary>
+ <description>If true, display a weather icon.</description>
+ </key>
+ <key name="show-temperature" type="b">
+ <default>true</default>
+ <summary>Show temperature in clock</summary>
+ <description>If true, show the temperature next to the weather icon.</description>
+ </key>
+ <key name="show-week-numbers" type="b">
+ <default>true</default>
+ <summary>Show week numbers in calendar</summary>
+ <description>If true, show week numbers in the calendar.</description>
+ </key>
+ <key name="expand-locations" type="b">
+ <default>false</default>
+ <summary>Expand list of locations</summary>
+ <description>If true, expand the list of locations in the calendar window.</description>
+ </key>
+ <key name="cities" type="as">
+ <default>[]</default>
+ <summary>List of locations</summary>
+ <description>A list of locations to display in the calendar window.</description>
+ </key>
+ <key name="temperature-unit" enum="org.mate.panel.applet.clock.TemperatureUnit">
+ <default>'Centigrade'</default>
+ <summary>Temperature unit</summary>
+ <description>The unit to use when showing temperatures.</description>
+ </key>
+ <key name="speed-unit" enum="org.mate.panel.applet.clock.SpeedUnit">
+ <default>'m/s'</default>
+ <summary>Speed unit</summary>
+ <description>The unit to use when showing wind speed.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/applets/clock/org.mate.panel.applet.clock.gschema.xml.in.in b/applets/clock/org.mate.panel.applet.clock.gschema.xml.in.in
deleted file mode 100644
index 9a24988f..00000000
--- a/applets/clock/org.mate.panel.applet.clock.gschema.xml.in.in
+++ /dev/null
@@ -1,88 +0,0 @@
-<schemalist gettext-domain="@GETTEXT_PACKAGE@">
- <enum id="org.mate.panel.applet.clock.ClockFormat">
- <value nick="invalid" value="0"/>
- <value nick="12-hour" value="1"/>
- <value nick="24-hour" value="2"/>
- <value nick="unix" value="3"/>
- <value nick="internet" value="4"/>
- <value nick="custom" value="5"/>
- </enum>
- <enum id="org.mate.panel.applet.clock.TemperatureUnit">
- <value nick="Invalid" value="0"/>
- <value nick="Default" value="1"/>
- <value nick="Kelvin" value="2"/>
- <value nick="Centigrade" value="3"/>
- <value nick="Fahrenheit" value="4"/>
- </enum>
- <enum id="org.mate.panel.applet.clock.SpeedUnit">
- <value nick="Invalid" value="0"/>
- <value nick="Default" value="1"/>
- <value nick="m/s" value="2"/>
- <value nick="km/h" value="3"/>
- <value nick="mph" value="4"/>
- <value nick="knots" value="5"/>
- <value nick="Beaufort scale" value="6"/>
- </enum>
- <schema id="org.mate.panel.applet.clock">
- <key name="format" enum="org.mate.panel.applet.clock.ClockFormat">
- <default>'24-hour'</default>
- <_summary>Hour format</_summary>
- <_description>This key specifies the hour format used by the clock applet. Possible values are "12-hour", "24-hour", "internet", "unix" and "custom". If set to "internet", the clock will display Internet time. The Internet time system divides the day into 1000 ".beats". There are no time zones in this system, so time is the same all over the world. If set to "unix", the clock will display time in seconds since Epoch, i.e. 1970-01-01. If set to "custom", the clock will display time according to the format specified in the custom_format key.</_description>
- </key>
- <key name="custom-format" type="s">
- <default>''</default>
- <_summary>Custom format of the clock</_summary>
- <_description>This key specifies the format used by the clock applet when the format key is set to "custom". You can use conversion specifiers understood by strftime() to obtain a specific format. See the strftime() manual for more information.</_description>
- </key>
- <key name="show-seconds" type="b">
- <default>false</default>
- <_summary>Show time with seconds</_summary>
- <_description>If true, display seconds in time.</_description>
- </key>
- <key name="show-date" type="b">
- <default>true</default>
- <_summary>Show date in clock</_summary>
- <_description>If true, display date in the clock, in addition to time.</_description>
- </key>
- <key name="show-tooltip" type="b">
- <default>true</default>
- <_summary>Show date in tooltip</_summary>
- <_description>If true, show date in a tooltip when the pointer is over the clock.</_description>
- </key>
- <key name="show-weather" type="b">
- <default>true</default>
- <_summary>Show weather in clock</_summary>
- <_description>If true, display a weather icon.</_description>
- </key>
- <key name="show-temperature" type="b">
- <default>true</default>
- <_summary>Show temperature in clock</_summary>
- <_description>If true, show the temperature next to the weather icon.</_description>
- </key>
- <key name="show-week-numbers" type="b">
- <default>true</default>
- <_summary>Show week numbers in calendar</_summary>
- <_description>If true, show week numbers in the calendar.</_description>
- </key>
- <key name="expand-locations" type="b">
- <default>false</default>
- <_summary>Expand list of locations</_summary>
- <_description>If true, expand the list of locations in the calendar window.</_description>
- </key>
- <key name="cities" type="as">
- <default>[]</default>
- <_summary>List of locations</_summary>
- <_description>A list of locations to display in the calendar window.</_description>
- </key>
- <key name="temperature-unit" enum="org.mate.panel.applet.clock.TemperatureUnit">
- <default>'Centigrade'</default>
- <_summary>Temperature unit</_summary>
- <_description>The unit to use when showing temperatures.</_description>
- </key>
- <key name="speed-unit" enum="org.mate.panel.applet.clock.SpeedUnit">
- <default>'m/s'</default>
- <_summary>Speed unit</_summary>
- <_description>The unit to use when showing wind speed.</_description>
- </key>
- </schema>
-</schemalist>
diff --git a/applets/fish/Makefile.am b/applets/fish/Makefile.am
index f8688bac..7f63cf5f 100644
--- a/applets/fish/Makefile.am
+++ b/applets/fish/Makefile.am
@@ -77,13 +77,11 @@ ui_DATA = fish.ui
xmluidir = $(datadir)/mate-panel/ui
xmlui_DATA = fish-menu.xml
-gsettings_SCHEMAS = org.mate.panel.applet.fish.gschema.xml
+fish_gschemas_in = org.mate.panel.applet.fish.gschema.xml.in
+gsettings_SCHEMAS = $(fish_gschemas_in:.xml.in=.xml)
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@
-%.gschema.xml.in: %.gschema.xml.in.in Makefile
- $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
-
EXTRA_DIST = \
wanda.svg \
$(fishbitmaps_DATA) \
@@ -91,7 +89,7 @@ EXTRA_DIST = \
$(service_in_files) \
$(ui_DATA) \
$(xmlui_DATA) \
- $(gsettings_SCHEMAS).in.in
+ $(fish_gschemas_in)
CLEANFILES = $(applet_DATA) $(applet_DATA).in $(service_DATA) $(gsettings_SCHEMAS)
diff --git a/applets/fish/org.mate.panel.applet.fish.gschema.xml.in b/applets/fish/org.mate.panel.applet.fish.gschema.xml.in
new file mode 100644
index 00000000..a3c3fe77
--- /dev/null
+++ b/applets/fish/org.mate.panel.applet.fish.gschema.xml.in
@@ -0,0 +1,34 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.panel.applet.fish">
+ <key name="name" type="s">
+ <default>'Wanda'</default>
+ <summary>The fish's name</summary>
+ <description>A fish without a name is a pretty dull fish. Bring your fish to life by naming him.</description>
+ </key>
+ <key name="image" type="s">
+ <default>'wanda.png'</default>
+ <summary>The fish's animation pixmap</summary>
+ <description>This key specifies the filename of the pixmap which will be used for the animation displayed in the fish applet relative to the pixmap directory.</description>
+ </key>
+ <key name="command" type="s">
+ <default>'fortune'</default>
+ <summary>Command to execute on click</summary>
+ <description>This key specifies the command that will be tried to execute when the fish is clicked.</description>
+ </key>
+ <key name="frames" type="i">
+ <default>8</default>
+ <summary>Frames in fish's animation</summary>
+ <description>This key specifies the number of frames that will be displayed in the fish's animation.</description>
+ </key>
+ <key name="speed" type="d">
+ <default>0.3</default>
+ <summary>Pause per frame</summary>
+ <description>This key specifies the number of seconds each frame will be displayed.</description>
+ </key>
+ <key name="rotate" type="b">
+ <default>false</default>
+ <summary>Rotate on vertical panels</summary>
+ <description>If true, the fish's animation will be displayed rotated on vertical panels.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/applets/fish/org.mate.panel.applet.fish.gschema.xml.in.in b/applets/fish/org.mate.panel.applet.fish.gschema.xml.in.in
deleted file mode 100644
index 6ab7bd07..00000000
--- a/applets/fish/org.mate.panel.applet.fish.gschema.xml.in.in
+++ /dev/null
@@ -1,34 +0,0 @@
-<schemalist gettext-domain="@GETTEXT_PACKAGE@">
- <schema id="org.mate.panel.applet.fish">
- <key name="name" type="s">
- <default>'Wanda'</default>
- <_summary>The fish's name</_summary>
- <_description>A fish without a name is a pretty dull fish. Bring your fish to life by naming him.</_description>
- </key>
- <key name="image" type="s">
- <default>'wanda.png'</default>
- <_summary>The fish's animation pixmap</_summary>
- <_description>This key specifies the filename of the pixmap which will be used for the animation displayed in the fish applet relative to the pixmap directory.</_description>
- </key>
- <key name="command" type="s">
- <default>'fortune'</default>
- <_summary>Command to execute on click</_summary>
- <_description>This key specifies the command that will be tried to execute when the fish is clicked.</_description>
- </key>
- <key name="frames" type="i">
- <default>8</default>
- <_summary>Frames in fish's animation</_summary>
- <_description>This key specifies the number of frames that will be displayed in the fish's animation.</_description>
- </key>
- <key name="speed" type="d">
- <default>0.3</default>
- <_summary>Pause per frame</_summary>
- <_description>This key specifies the number of seconds each frame will be displayed.</_description>
- </key>
- <key name="rotate" type="b">
- <default>false</default>
- <_summary>Rotate on vertical panels</_summary>
- <_description>If true, the fish's animation will be displayed rotated on vertical panels.</_description>
- </key>
- </schema>
-</schemalist>
diff --git a/applets/wncklet/Makefile.am b/applets/wncklet/Makefile.am
index d7cba006..db61f873 100644
--- a/applets/wncklet/Makefile.am
+++ b/applets/wncklet/Makefile.am
@@ -84,21 +84,19 @@ xmlui_DATA = \
showdesktop-menu.xml \
window-list-menu.xml
-gsettings_SCHEMAS = \
- org.mate.panel.applet.window-list.gschema.xml \
- org.mate.panel.applet.workspace-switcher.gschema.xml
+wncklet_gschemas_in = \
+ org.mate.panel.applet.window-list.gschema.xml.in \
+ org.mate.panel.applet.workspace-switcher.gschema.xml.in
+gsettings_SCHEMAS = $(wncklet_gschemas_in:.xml.in=.xml)
+
@INTLTOOL_XML_NOMERGE_RULE@
@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.panel.Wncklet.mate-panel-applet.in.in \
$(service_in_files) \
$(xmlui_DATA) \
- org.mate.panel.applet.window-list.gschema.xml.in.in \
- org.mate.panel.applet.workspace-switcher.gschema.xml.in.in \
+ $(wncklet_gschemas_in) \
$(ui_DATA)
CLEANFILES = $(applet_DATA) $(applet_DATA).in $(service_DATA) $(gsettings_SCHEMAS)
diff --git a/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in b/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in
new file mode 100644
index 00000000..0f2d871d
--- /dev/null
+++ b/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in
@@ -0,0 +1,24 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <enum id="org.mate.panel.applet.window-list.GroupingType">
+ <value nick="never" value="0"/>
+ <value nick="auto" value="1"/>
+ <value nick="always" value="2"/>
+ </enum>
+ <schema id="org.mate.panel.applet.window-list">
+ <key name="display-all-workspaces" type="b">
+ <default>false</default>
+ <summary>Show windows from all workspaces</summary>
+ <description>If true, the window list will show windows from all workspaces. Otherwise it will only display windows from the current workspace.</description>
+ </key>
+ <key name="group-windows" enum="org.mate.panel.applet.window-list.GroupingType">
+ <default>'never'</default>
+ <summary>When to group windows</summary>
+ <description>Decides when to group windows from the same application on the window list. Possible values are "never", "auto" and "always".</description>
+ </key>
+ <key name="move-unminimized-windows" type="b">
+ <default>true</default>
+ <summary>Move windows to current workspace when unminimized</summary>
+ <description>If true, then when unminimizing a window, move it to the current workspace. Otherwise, switch to the workspace of the window.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in.in b/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in.in
deleted file mode 100644
index a9647379..00000000
--- a/applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in.in
+++ /dev/null
@@ -1,24 +0,0 @@
-<schemalist gettext-domain="@GETTEXT_PACKAGE@">
- <enum id="org.mate.panel.applet.window-list.GroupingType">
- <value nick="never" value="0"/>
- <value nick="auto" value="1"/>
- <value nick="always" value="2"/>
- </enum>
- <schema id="org.mate.panel.applet.window-list">
- <key name="display-all-workspaces" type="b">
- <default>false</default>
- <_summary>Show windows from all workspaces</_summary>
- <_description>If true, the window list will show windows from all workspaces. Otherwise it will only display windows from the current workspace.</_description>
- </key>
- <key name="group-windows" enum="org.mate.panel.applet.window-list.GroupingType">
- <default>'never'</default>
- <_summary>When to group windows</_summary>
- <_description>Decides when to group windows from the same application on the window list. Possible values are "never", "auto" and "always".</_description>
- </key>
- <key name="move-unminimized-windows" type="b">
- <default>true</default>
- <_summary>Move windows to current workspace when unminimized</_summary>
- <_description>If true, then when unminimizing a window, move it to the current workspace. Otherwise, switch to the workspace of the window.</_description>
- </key>
- </schema>
-</schemalist>
diff --git a/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in b/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in
new file mode 100644
index 00000000..c49f472d
--- /dev/null
+++ b/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in
@@ -0,0 +1,24 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.panel.applet.workspace-switcher">
+ <key name="display-workspace-names" type="b">
+ <default>false</default>
+ <summary>Display workspace names</summary>
+ <description>If true, the workspaces in the workspace switcher will display the names of the workspaces. Otherwise they will display the windows on the workspace. This setting only works when the window manager is Marco.</description>
+ </key>
+ <key name="display-all-workspaces" type="b">
+ <default>true</default>
+ <summary>Display all workspaces</summary>
+ <description>If true, the workspace switcher will show all workspaces. Otherwise it will only show the current workspace.</description>
+ </key>
+ <key name="num-rows" type="i">
+ <default>1</default>
+ <summary>Rows in workspace switcher</summary>
+ <description>This key specifies how many rows (for horizontal layout) or columns (for vertical layout) the workspace switcher shows the workspaces in. This key is only relevant if the display_all_workspaces key is true.</description>
+ </key>
+ <key name="wrap-workspaces" type="b">
+ <default>false</default>
+ <summary>Wrap around on scroll</summary>
+ <description>If true, the workspace switcher will allow wrap-around, which means switching from the first to the last workspace and vice versa via scrolling.</description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in.in b/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in.in
deleted file mode 100644
index 82a20922..00000000
--- a/applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in.in
+++ /dev/null
@@ -1,24 +0,0 @@
-<schemalist gettext-domain="@GETTEXT_PACKAGE@">
- <schema id="org.mate.panel.applet.workspace-switcher">
- <key name="display-workspace-names" type="b">
- <default>false</default>
- <_summary>Display workspace names</_summary>
- <_description>If true, the workspaces in the workspace switcher will display the names of the workspaces. Otherwise they will display the windows on the workspace. This setting only works when the window manager is Marco.</_description>
- </key>
- <key name="display-all-workspaces" type="b">
- <default>true</default>
- <_summary>Display all workspaces</_summary>
- <_description>If true, the workspace switcher will show all workspaces. Otherwise it will only show the current workspace.</_description>
- </key>
- <key name="num-rows" type="i">
- <default>1</default>
- <_summary>Rows in workspace switcher</_summary>
- <_description>This key specifies how many rows (for horizontal layout) or columns (for vertical layout) the workspace switcher shows the workspaces in. This key is only relevant if the display_all_workspaces key is true.</_description>
- </key>
- <key name="wrap-workspaces" type="b">
- <default>false</default>
- <_summary>Wrap around on scroll</_summary>
- <_description>If true, the workspace switcher will allow wrap-around, which means switching from the first to the last workspace and vice versa via scrolling.</_description>
- </key>
- </schema>
-</schemalist>