From 9ef7e261d4a9ea536d6f467c2b9bd1381bcd73aa Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 6 Sep 2015 16:20:20 +0200 Subject: Rework gsettings schema building * Bump intltool required version for gsettings support * Extract strings with intltool directly * Let autoconf generate the xml files --- applets/wncklet/Makefile.am | 14 ++++++------- ...rg.mate.panel.applet.window-list.gschema.xml.in | 24 ++++++++++++++++++++++ ...mate.panel.applet.window-list.gschema.xml.in.in | 24 ---------------------- ....panel.applet.workspace-switcher.gschema.xml.in | 24 ++++++++++++++++++++++ ...nel.applet.workspace-switcher.gschema.xml.in.in | 24 ---------------------- 5 files changed, 54 insertions(+), 56 deletions(-) create mode 100644 applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in delete mode 100644 applets/wncklet/org.mate.panel.applet.window-list.gschema.xml.in.in create mode 100644 applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in delete mode 100644 applets/wncklet/org.mate.panel.applet.workspace-switcher.gschema.xml.in.in (limited to 'applets/wncklet') 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 @@ + + + + + + + + + false + Show windows from all workspaces + If true, the window list will show windows from all workspaces. Otherwise it will only display windows from the current workspace. + + + 'never' + When to group windows + Decides when to group windows from the same application on the window list. Possible values are "never", "auto" and "always". + + + true + Move windows to current workspace when unminimized + If true, then when unminimizing a window, move it to the current workspace. Otherwise, switch to the workspace of the window. + + + 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 @@ - - - - - - - - - false - <_summary>Show windows from all workspaces - <_description>If true, the window list will show windows from all workspaces. Otherwise it will only display windows from the current workspace. - - - 'never' - <_summary>When to group windows - <_description>Decides when to group windows from the same application on the window list. Possible values are "never", "auto" and "always". - - - true - <_summary>Move windows to current workspace when unminimized - <_description>If true, then when unminimizing a window, move it to the current workspace. Otherwise, switch to the workspace of the window. - - - 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 @@ + + + + false + Display workspace names + 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. + + + true + Display all workspaces + If true, the workspace switcher will show all workspaces. Otherwise it will only show the current workspace. + + + 1 + Rows in workspace switcher + 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. + + + false + Wrap around on scroll + If true, the workspace switcher will allow wrap-around, which means switching from the first to the last workspace and vice versa via scrolling. + + + 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 @@ - - - - false - <_summary>Display workspace names - <_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. - - - true - <_summary>Display all workspaces - <_description>If true, the workspace switcher will show all workspaces. Otherwise it will only show the current workspace. - - - 1 - <_summary>Rows in workspace switcher - <_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. - - - false - <_summary>Wrap around on scroll - <_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. - - - -- cgit v1.2.1