mirror of
https://github.com/elementary/gala.git
synced 2024-11-25 03:06:14 +01:00
Add editorconfig; fix whitespace (#881)
This commit is contained in:
parent
7de1313128
commit
7573fa7d00
15
.editorconfig
Normal file
15
.editorconfig
Normal file
@ -0,0 +1,15 @@
|
||||
# EditorConfig <http://EditorConfig.org>
|
||||
root = true
|
||||
|
||||
# elementary defaults
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = tab
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
max_line_length = 80
|
||||
tab_width = 4
|
||||
|
||||
[{*.xml,*.xml.in,*.yml}]
|
||||
tab_width = 2
|
@ -1,11 +1,11 @@
|
||||
gala_daemon_sources = files(
|
||||
'Main.vala',
|
||||
'MenuDaemon.vala'
|
||||
'Main.vala',
|
||||
'MenuDaemon.vala'
|
||||
)
|
||||
|
||||
gala_daemon_bin = executable(
|
||||
'gala-daemon',
|
||||
gala_daemon_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
install: true,
|
||||
'gala-daemon',
|
||||
gala_daemon_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
install: true,
|
||||
)
|
||||
|
@ -18,10 +18,10 @@
|
||||
*/
|
||||
|
||||
.gala-notification {
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
|
||||
background-color: rgb(2434, 2434, 2434);
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
|
||||
background-color: rgb(2434, 2434, 2434);
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.gala-notification .title, .gala-notification .label {
|
||||
@ -29,9 +29,9 @@
|
||||
}
|
||||
|
||||
.decoration {
|
||||
border-radius: 4px 4px 0 0;
|
||||
box-shadow:
|
||||
0 0 0 1px alpha (#000, 0.3),
|
||||
border-radius: 4px 4px 0 0;
|
||||
box-shadow:
|
||||
0 0 0 1px alpha(#000, 0.3),
|
||||
0 14px 20px rgba(0, 0, 0, 0.35),
|
||||
0 10px 10px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
@ -39,8 +39,8 @@
|
||||
.workspace.decoration {
|
||||
border-radius: 4px;
|
||||
box-shadow:
|
||||
0 0 0 1px alpha (#000, 0.2),
|
||||
0 8px 10px 1px alpha (#000, 0.14),
|
||||
0 3px 14px 2px alpha (#000, 0.12),
|
||||
0 5px 5px -3px alpha (#000, 0.4);
|
||||
0 0 0 1px alpha(#000, 0.2),
|
||||
0 8px 10px 1px alpha(#000, 0.14),
|
||||
0 3px 14px 2px alpha(#000, 0.12),
|
||||
0 5px 5px -3px alpha(#000, 0.4);
|
||||
}
|
||||
|
@ -16,12 +16,12 @@
|
||||
along with this program. If not, see <http: www.gnu.org/licenses/>.
|
||||
-->
|
||||
<gresources>
|
||||
<gresource prefix="/org/pantheon/desktop/gala">
|
||||
<file alias="buttons/close.svg" compressed="true" preprocess="xml-stripblanks">close.svg</file>
|
||||
<file alias="buttons/resize.svg" compressed="true" preprocess="xml-stripblanks">resize.svg</file>
|
||||
</gresource>
|
||||
<gresource prefix="/io/elementary/desktop/gala">
|
||||
<file compressed="true">gala.css</file>
|
||||
<file>texture.png</file>
|
||||
</gresource>
|
||||
<gresource prefix="/org/pantheon/desktop/gala">
|
||||
<file alias="buttons/close.svg" compressed="true" preprocess="xml-stripblanks">close.svg</file>
|
||||
<file alias="buttons/resize.svg" compressed="true" preprocess="xml-stripblanks">resize.svg</file>
|
||||
</gresource>
|
||||
<gresource prefix="/io/elementary/desktop/gala">
|
||||
<file compressed="true">gala.css</file>
|
||||
<file>texture.png</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
@ -1,311 +1,311 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist>
|
||||
<enum id="GalaActionType">
|
||||
<value nick='none' value="0" />
|
||||
<value nick="show-workspace-view" value="1" />
|
||||
<value nick="maximize-current" value="2" />
|
||||
<value nick="minimize-current" value="3" />
|
||||
<value nick="open-launcher" value="4" />
|
||||
<value nick="custom-command" value="5" />
|
||||
<value nick="window-overview" value="6" />
|
||||
<value nick="window-overview-all" value="7" />
|
||||
<value nick="switch-to-workspace-last" value="8" />
|
||||
</enum>
|
||||
<enum id="GalaWindowOverviewType">
|
||||
<value nick='grid' value='0'/>
|
||||
<value nick='natural' value='1'/>
|
||||
</enum>
|
||||
<enum id="GalaActionType">
|
||||
<value nick='none' value="0" />
|
||||
<value nick="show-workspace-view" value="1" />
|
||||
<value nick="maximize-current" value="2" />
|
||||
<value nick="minimize-current" value="3" />
|
||||
<value nick="open-launcher" value="4" />
|
||||
<value nick="custom-command" value="5" />
|
||||
<value nick="window-overview" value="6" />
|
||||
<value nick="window-overview-all" value="7" />
|
||||
<value nick="switch-to-workspace-last" value="8" />
|
||||
</enum>
|
||||
<enum id="GalaWindowOverviewType">
|
||||
<value nick='grid' value='0'/>
|
||||
<value nick='natural' value='1'/>
|
||||
</enum>
|
||||
|
||||
<schema path="/io/elementary/desktop/screensaver/" id="io.elementary.desktop.screensaver">
|
||||
<key type="b" name="lock-on-suspend">
|
||||
<default>true</default>
|
||||
<summary>Automatically lock the screen when the computer suspends</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/io/elementary/desktop/screensaver/" id="io.elementary.desktop.screensaver">
|
||||
<key type="b" name="lock-on-suspend">
|
||||
<default>true</default>
|
||||
<summary>Automatically lock the screen when the computer suspends</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/behavior/" id="org.pantheon.desktop.gala.behavior">
|
||||
<key enum="GalaActionType" name="hotcorner-topleft">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the top left corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaWindowOverviewType" name="window-overview-type">
|
||||
<default>'grid'</default>
|
||||
<summary>Algorithm for window overview layout</summary>
|
||||
<description>Choose the algorithm used for exposing the windows.</description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-topright">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the top right corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-bottomleft">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the bottom left corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-bottomright">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the bottom right corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="s" name="hotcorner-custom-command">
|
||||
<default>''</default>
|
||||
<summary>The command that will be executed for the hot corner action 'custom-command' or multiple</summary>
|
||||
<description>If you just put a single command, it will be used for every hot corner assigned to
|
||||
'custom-command'. If you instead use the pattern
|
||||
'hotcorner-topleft:command;;hotcorner-bottomright:command' the specific commands will be used
|
||||
per hotcorner. Possible identifiers are 'hotcorner-[topleft; topright; bottomleft; bottomright]'
|
||||
followed by a ':' and then the command. ';;' is used as delimiter between command defintions.
|
||||
</description>
|
||||
</key>
|
||||
<key type="b" name="edge-tiling">
|
||||
<default>true</default>
|
||||
<summary>Enable edge tiling when dropping windows on screen edges</summary>
|
||||
<description>If enabled, dropping windows on vertical screen edges maximizes them vertically and resizes them horizontally to cover half of the available area. Dropping windows on the top screen edge maximizes them completely.</description>
|
||||
</key>
|
||||
<key type="b" name="use-new-notifications">
|
||||
<default>true</default>
|
||||
<summary>If new notifications should be used</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="s" name="panel-main-menu-action">
|
||||
<default>''</default>
|
||||
<summary>Panel main menu action</summary>
|
||||
<description>Sets the command to run when the panel-main-menu keybinding is pressed.</description>
|
||||
</key>
|
||||
<key type="s" name="toggle-recording-action">
|
||||
<default>''</default>
|
||||
<summary></summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="s" name="overlay-action">
|
||||
<default>''</default>
|
||||
<summary></summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="b" name="dynamic-workspaces">
|
||||
<default>true</default>
|
||||
<summary>Enable dynamic workspace instead of static ones</summary>
|
||||
<description>Use a dynamically increasing or decreasing number, as needed, of workspaces instead of a static, fixed number.</description>
|
||||
</key>
|
||||
<key type="as" name="dock-names">
|
||||
<default><![CDATA[['docky', 'Docky', 'plank']]]></default>
|
||||
<summary>Names that are recognized as dock windows for the window switcher</summary>
|
||||
<description>When launching the window-switcher, Gala iterates over this list and attempts to find a window matching the names. If it does, it will hide this window and fade it back in, once the the switcher is closed.</description>
|
||||
</key>
|
||||
<key type="b" name="move-maximized-workspace">
|
||||
<default>false</default>
|
||||
<summary>Automatically move maximized windows to a new workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/behavior/" id="org.pantheon.desktop.gala.behavior">
|
||||
<key enum="GalaActionType" name="hotcorner-topleft">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the top left corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaWindowOverviewType" name="window-overview-type">
|
||||
<default>'grid'</default>
|
||||
<summary>Algorithm for window overview layout</summary>
|
||||
<description>Choose the algorithm used for exposing the windows.</description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-topright">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the top right corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-bottomleft">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the bottom left corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key enum="GalaActionType" name="hotcorner-bottomright">
|
||||
<default>'none'</default>
|
||||
<summary>Action for the bottom right corner</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="s" name="hotcorner-custom-command">
|
||||
<default>''</default>
|
||||
<summary>The command that will be executed for the hot corner action 'custom-command' or multiple</summary>
|
||||
<description>If you just put a single command, it will be used for every hot corner assigned to
|
||||
'custom-command'. If you instead use the pattern
|
||||
'hotcorner-topleft:command;;hotcorner-bottomright:command' the specific commands will be used
|
||||
per hotcorner. Possible identifiers are 'hotcorner-[topleft; topright; bottomleft; bottomright]'
|
||||
followed by a ':' and then the command. ';;' is used as delimiter between command defintions.
|
||||
</description>
|
||||
</key>
|
||||
<key type="b" name="edge-tiling">
|
||||
<default>true</default>
|
||||
<summary>Enable edge tiling when dropping windows on screen edges</summary>
|
||||
<description>If enabled, dropping windows on vertical screen edges maximizes them vertically and resizes them horizontally to cover half of the available area. Dropping windows on the top screen edge maximizes them completely.</description>
|
||||
</key>
|
||||
<key type="b" name="use-new-notifications">
|
||||
<default>true</default>
|
||||
<summary>If new notifications should be used</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="s" name="panel-main-menu-action">
|
||||
<default>''</default>
|
||||
<summary>Panel main menu action</summary>
|
||||
<description>Sets the command to run when the panel-main-menu keybinding is pressed.</description>
|
||||
</key>
|
||||
<key type="s" name="toggle-recording-action">
|
||||
<default>''</default>
|
||||
<summary></summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="s" name="overlay-action">
|
||||
<default>''</default>
|
||||
<summary></summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="b" name="dynamic-workspaces">
|
||||
<default>true</default>
|
||||
<summary>Enable dynamic workspace instead of static ones</summary>
|
||||
<description>Use a dynamically increasing or decreasing number, as needed, of workspaces instead of a static, fixed number.</description>
|
||||
</key>
|
||||
<key type="as" name="dock-names">
|
||||
<default><![CDATA[['docky', 'Docky', 'plank']]]></default>
|
||||
<summary>Names that are recognized as dock windows for the window switcher</summary>
|
||||
<description>When launching the window-switcher, Gala iterates over this list and attempts to find a window matching the names. If it does, it will hide this window and fade it back in, once the the switcher is closed.</description>
|
||||
</key>
|
||||
<key type="b" name="move-maximized-workspace">
|
||||
<default>false</default>
|
||||
<summary>Automatically move maximized windows to a new workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/keybindings/" id="org.pantheon.desktop.gala.keybindings">
|
||||
<key type="as" name="switch-to-workspace-first">
|
||||
<default><![CDATA[['<Super>Home']]]></default>
|
||||
<summary>Shortcut to move to first workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="switch-to-workspace-last">
|
||||
<default><![CDATA[['<Super>End', '<Super>0']]]></default>
|
||||
<summary>Shortcut to move to last workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="move-to-workspace-first">
|
||||
<default><![CDATA[['<Super><Shift>Home']]]></default>
|
||||
<summary>Shortcut to move the current window to first workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="move-to-workspace-last">
|
||||
<default><![CDATA[['<Super><Shift>End', '<Super>0']]]></default>
|
||||
<summary>Shortcut to move the current window to last workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="zoom-in">
|
||||
<default><![CDATA[['<Super>plus', '<Super>KP_Add']]]></default>
|
||||
<summary>Zoom in</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="zoom-out">
|
||||
<default><![CDATA[['<Super>minus', '<Super>KP_Subtract']]]></default>
|
||||
<summary>Zoom out</summary>
|
||||
</key>
|
||||
<key type="as" name="expose-windows">
|
||||
<default><![CDATA[['<Super>w']]]></default>
|
||||
<summary>Shortcut to open the window overview</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="expose-all-windows">
|
||||
<default><![CDATA[['<Super>a']]]></default>
|
||||
<summary>Shortcut to open the window overview for all windows</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="cycle-workspaces-next">
|
||||
<default><![CDATA[['<Super>Tab']]]></default>
|
||||
<summary>Cycle to the next workspace to the right or to back to the first</summary>
|
||||
</key>
|
||||
<key type="as" name="cycle-workspaces-previous">
|
||||
<default><![CDATA[['<Super><Shift>Tab']]]></default>
|
||||
<summary>Cycle to the next workspace to the right or to back to the first</summary>
|
||||
</key>
|
||||
<key type="as" name="switch-input-source">
|
||||
<default><![CDATA[['<Alt>space']]]></default>
|
||||
<summary>Cycle to next keyboard layout</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="as" name="switch-input-source-backward">
|
||||
<default><![CDATA[['']]]></default>
|
||||
<summary>Cycle to previous keyboard layout</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="as" name="pip">
|
||||
<default><![CDATA[['<Super>f']]]></default>
|
||||
<summary>The shortcut to enable picture-in-picture window</summary>
|
||||
<description>The shortcut to show the selection area to choose a window.</description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/keybindings/" id="org.pantheon.desktop.gala.keybindings">
|
||||
<key type="as" name="switch-to-workspace-first">
|
||||
<default><![CDATA[['<Super>Home']]]></default>
|
||||
<summary>Shortcut to move to first workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="switch-to-workspace-last">
|
||||
<default><![CDATA[['<Super>End', '<Super>0']]]></default>
|
||||
<summary>Shortcut to move to last workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="move-to-workspace-first">
|
||||
<default><![CDATA[['<Super><Shift>Home']]]></default>
|
||||
<summary>Shortcut to move the current window to first workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="move-to-workspace-last">
|
||||
<default><![CDATA[['<Super><Shift>End', '<Super>0']]]></default>
|
||||
<summary>Shortcut to move the current window to last workspace</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="zoom-in">
|
||||
<default><![CDATA[['<Super>plus', '<Super>KP_Add']]]></default>
|
||||
<summary>Zoom in</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="zoom-out">
|
||||
<default><![CDATA[['<Super>minus', '<Super>KP_Subtract']]]></default>
|
||||
<summary>Zoom out</summary>
|
||||
</key>
|
||||
<key type="as" name="expose-windows">
|
||||
<default><![CDATA[['<Super>w']]]></default>
|
||||
<summary>Shortcut to open the window overview</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="expose-all-windows">
|
||||
<default><![CDATA[['<Super>a']]]></default>
|
||||
<summary>Shortcut to open the window overview for all windows</summary>
|
||||
<description></description>
|
||||
</key>
|
||||
<key type="as" name="cycle-workspaces-next">
|
||||
<default><![CDATA[['<Super>Tab']]]></default>
|
||||
<summary>Cycle to the next workspace to the right or to back to the first</summary>
|
||||
</key>
|
||||
<key type="as" name="cycle-workspaces-previous">
|
||||
<default><![CDATA[['<Super><Shift>Tab']]]></default>
|
||||
<summary>Cycle to the next workspace to the right or to back to the first</summary>
|
||||
</key>
|
||||
<key type="as" name="switch-input-source">
|
||||
<default><![CDATA[['<Alt>space']]]></default>
|
||||
<summary>Cycle to next keyboard layout</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="as" name="switch-input-source-backward">
|
||||
<default><![CDATA[['']]]></default>
|
||||
<summary>Cycle to previous keyboard layout</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="as" name="pip">
|
||||
<default><![CDATA[['<Super>f']]]></default>
|
||||
<summary>The shortcut to enable picture-in-picture window</summary>
|
||||
<description>The shortcut to show the selection area to choose a window.</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/appearance/" id="org.pantheon.desktop.gala.appearance">
|
||||
<key type="b" name="attach-modal-dialogs">
|
||||
<default>false</default>
|
||||
<summary>Attach modal dialogs</summary>
|
||||
<description>When true, instead of having independent titlebars, modal dialogs appear attached to the titlebar of the parent window and are moved together with the parent window.</description>
|
||||
</key>
|
||||
<key type="s" name="button-layout">
|
||||
<default>'close:maximize'</default>
|
||||
<summary>Arrangement of buttons on the titlebar</summary>
|
||||
<description>Arrangement of buttons on the titlebar. The value should be a string, such as "menu:minimize,maximize,spacer,close"; the colon separates the left corner of the window from the right corner, and the button names are comma-separated. Duplicate buttons are not allowed. Unknown button names are silently ignored so that buttons can be added in future metacity versions without breaking older versions. A special spacer tag can be used to insert some space between two adjacent buttons.</description>
|
||||
</key>
|
||||
<key type="b" name="dim-parents">
|
||||
<default>false</default>
|
||||
<summary>Dims parent windows when spawning modal dialogs</summary>
|
||||
</key>
|
||||
<key type="d" name="alt-tab-window-opacity">
|
||||
<range min="0.0" max="1.0"/>
|
||||
<default>0.0</default>
|
||||
<summary>The opacity of windows behind the window switcher.</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="s" name="workspace-switcher-background">
|
||||
<default>''</default>
|
||||
<summary>Background-image used in the workspace-switcher</summary>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/appearance/" id="org.pantheon.desktop.gala.appearance">
|
||||
<key type="b" name="attach-modal-dialogs">
|
||||
<default>false</default>
|
||||
<summary>Attach modal dialogs</summary>
|
||||
<description>When true, instead of having independent titlebars, modal dialogs appear attached to the titlebar of the parent window and are moved together with the parent window.</description>
|
||||
</key>
|
||||
<key type="s" name="button-layout">
|
||||
<default>'close:maximize'</default>
|
||||
<summary>Arrangement of buttons on the titlebar</summary>
|
||||
<description>Arrangement of buttons on the titlebar. The value should be a string, such as "menu:minimize,maximize,spacer,close"; the colon separates the left corner of the window from the right corner, and the button names are comma-separated. Duplicate buttons are not allowed. Unknown button names are silently ignored so that buttons can be added in future metacity versions without breaking older versions. A special spacer tag can be used to insert some space between two adjacent buttons.</description>
|
||||
</key>
|
||||
<key type="b" name="dim-parents">
|
||||
<default>false</default>
|
||||
<summary>Dims parent windows when spawning modal dialogs</summary>
|
||||
</key>
|
||||
<key type="d" name="alt-tab-window-opacity">
|
||||
<range min="0.0" max="1.0"/>
|
||||
<default>0.0</default>
|
||||
<summary>The opacity of windows behind the window switcher.</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="s" name="workspace-switcher-background">
|
||||
<default>''</default>
|
||||
<summary>Background-image used in the workspace-switcher</summary>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/animations/" id="org.pantheon.desktop.gala.animations">
|
||||
<key type="b" name="enable-animations">
|
||||
<default>true</default>
|
||||
<summary>Enable Animations</summary>
|
||||
<description>Whether animations should be displayed. Note: This is a global key, it changes the behaviour of the window manager, the panel etc.</description>
|
||||
</key>
|
||||
<key type="i" name="open-duration">
|
||||
<default>350</default>
|
||||
<summary>Duration of the open animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="snap-duration">
|
||||
<default>250</default>
|
||||
<summary>Duration of the snap animation as used by maximize/unmaximize</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="close-duration">
|
||||
<default>195</default>
|
||||
<summary>Duration of the close animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="minimize-duration">
|
||||
<default>200</default>
|
||||
<summary>Duration of the minimize animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="workspace-switch-duration">
|
||||
<default>300</default>
|
||||
<summary>Duration of the workspace switch animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="menu-duration">
|
||||
<default>150</default>
|
||||
<summary>Duration of the menu mapping animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/animations/" id="org.pantheon.desktop.gala.animations">
|
||||
<key type="b" name="enable-animations">
|
||||
<default>true</default>
|
||||
<summary>Enable Animations</summary>
|
||||
<description>Whether animations should be displayed. Note: This is a global key, it changes the behaviour of the window manager, the panel etc.</description>
|
||||
</key>
|
||||
<key type="i" name="open-duration">
|
||||
<default>350</default>
|
||||
<summary>Duration of the open animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="snap-duration">
|
||||
<default>250</default>
|
||||
<summary>Duration of the snap animation as used by maximize/unmaximize</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="close-duration">
|
||||
<default>195</default>
|
||||
<summary>Duration of the close animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="minimize-duration">
|
||||
<default>200</default>
|
||||
<summary>Duration of the minimize animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="workspace-switch-duration">
|
||||
<default>300</default>
|
||||
<summary>Duration of the workspace switch animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="i" name="menu-duration">
|
||||
<default>150</default>
|
||||
<summary>Duration of the menu mapping animation</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/shadows/" id="org.pantheon.desktop.gala.shadows">
|
||||
<key type="as" name="normal-focused">
|
||||
<default>['20', '-1', '0', '15', '100']</default>
|
||||
<summary>Defines the shadow of normal focused windows</summary>
|
||||
<description>The first value is the radius of the blur of the shadow, the second one the top fade (which is usually just -1), the third and fourth the x- and y-offset and the last the opacity. So [blur-radius, top-fade, x-offset, y-offset, opacity].</description>
|
||||
</key>
|
||||
<key type="as" name="normal-unfocused">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of a normal unfocused window</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="menu">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of a menu</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="dialog-focused">
|
||||
<default>['12', '-1', '0', '4', '100']</default>
|
||||
<summary>Defines the shadow of a focused dialog</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="dialog-unfocused">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of an unfocused dialog</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/shadows/" id="org.pantheon.desktop.gala.shadows">
|
||||
<key type="as" name="normal-focused">
|
||||
<default>['20', '-1', '0', '15', '100']</default>
|
||||
<summary>Defines the shadow of normal focused windows</summary>
|
||||
<description>The first value is the radius of the blur of the shadow, the second one the top fade (which is usually just -1), the third and fourth the x- and y-offset and the last the opacity. So [blur-radius, top-fade, x-offset, y-offset, opacity].</description>
|
||||
</key>
|
||||
<key type="as" name="normal-unfocused">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of a normal unfocused window</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="menu">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of a menu</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="dialog-focused">
|
||||
<default>['12', '-1', '0', '4', '100']</default>
|
||||
<summary>Defines the shadow of a focused dialog</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
<key type="as" name="dialog-unfocused">
|
||||
<default>['6', '-1', '0', '4', '80']</default>
|
||||
<summary>Defines the shadow of an unfocused dialog</summary>
|
||||
<description>See normal-focused.</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/notifications/" id="org.pantheon.desktop.gala.notifications">
|
||||
<key type="b" name="do-not-disturb">
|
||||
<default>false</default>
|
||||
<summary>Disable all notifications</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<child name="applications" schema="org.pantheon.desktop.gala.notifications.application" />
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/notifications/" id="org.pantheon.desktop.gala.notifications">
|
||||
<key type="b" name="do-not-disturb">
|
||||
<default>false</default>
|
||||
<summary>Disable all notifications</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<child name="applications" schema="org.pantheon.desktop.gala.notifications.application" />
|
||||
</schema>
|
||||
|
||||
<schema id="org.pantheon.desktop.gala.notifications.application">
|
||||
<key type="b" name="bubbles">
|
||||
<default>true</default>
|
||||
<summary>Enable bubbles</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="b" name="sounds">
|
||||
<default>true</default>
|
||||
<summary>Enable sounds</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="b" name="remember">
|
||||
<default>true</default>
|
||||
<summary>Show missed notifications in notification center</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
</schema>
|
||||
<schema id="org.pantheon.desktop.gala.notifications.application">
|
||||
<key type="b" name="bubbles">
|
||||
<default>true</default>
|
||||
<summary>Enable bubbles</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="b" name="sounds">
|
||||
<default>true</default>
|
||||
<summary>Enable sounds</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
<key type="b" name="remember">
|
||||
<default>true</default>
|
||||
<summary>Show missed notifications in notification center</summary>
|
||||
<description>DEPRECATED: This key is deprecated and ignored.</description>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema path="/org/pantheon/desktop/gala/mask-corners/" id="org.pantheon.desktop.gala.mask-corners">
|
||||
<key type="b" name="enable">
|
||||
<default>true</default>
|
||||
<summary>Enable rounded corner mask</summary>
|
||||
</key>
|
||||
<key type="i" name="corner-radius">
|
||||
<default>4</default>
|
||||
<range min="1" max="32"/>
|
||||
<summary>Corner radius</summary>
|
||||
<description>DEPRECATED: This setting is no longer used</description>
|
||||
</key>
|
||||
<key type="b" name="disable-on-fullscreen">
|
||||
<default>true</default>
|
||||
<summary>Disable corner mask on fullscreen</summary>
|
||||
<description>If enabled, when an application is fullscreen (fills the monitor), the corner masks will be disabled on that monitor.</description>
|
||||
</key>
|
||||
<key type="b" name="only-on-primary">
|
||||
<default>false</default>
|
||||
<summary>Only show corner masks on primary monitor</summary>
|
||||
</key>
|
||||
</schema>
|
||||
<schema path="/org/pantheon/desktop/gala/mask-corners/" id="org.pantheon.desktop.gala.mask-corners">
|
||||
<key type="b" name="enable">
|
||||
<default>true</default>
|
||||
<summary>Enable rounded corner mask</summary>
|
||||
</key>
|
||||
<key type="i" name="corner-radius">
|
||||
<default>4</default>
|
||||
<range min="1" max="32"/>
|
||||
<summary>Corner radius</summary>
|
||||
<description>DEPRECATED: This setting is no longer used</description>
|
||||
</key>
|
||||
<key type="b" name="disable-on-fullscreen">
|
||||
<default>true</default>
|
||||
<summary>Disable corner mask on fullscreen</summary>
|
||||
<description>If enabled, when an application is fullscreen (fills the monitor), the corner masks will be disabled on that monitor.</description>
|
||||
</key>
|
||||
<key type="b" name="only-on-primary">
|
||||
<default>false</default>
|
||||
<summary>Only show corner masks on primary monitor</summary>
|
||||
</key>
|
||||
</schema>
|
||||
</schemalist>
|
||||
|
@ -19,20 +19,21 @@ i18n.merge_file(
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: 'gala-multitaskingview.desktop.in',
|
||||
output: 'gala-multitaskingview.desktop',
|
||||
po_dir: join_paths(meson.source_root (), 'po'),
|
||||
type: 'desktop',
|
||||
install: true,
|
||||
install_dir: join_paths(data_dir, 'applications')
|
||||
input: 'gala-multitaskingview.desktop.in',
|
||||
output: 'gala-multitaskingview.desktop',
|
||||
po_dir: join_paths(meson.source_root (), 'po'),
|
||||
type: 'desktop',
|
||||
install: true,
|
||||
install_dir: join_paths(data_dir, 'applications')
|
||||
)
|
||||
|
||||
i18n.merge_file(
|
||||
input: 'gala-other.desktop.in',
|
||||
output: 'gala-other.desktop',
|
||||
po_dir: join_paths(meson.source_root (), 'po'),
|
||||
type: 'desktop',
|
||||
install: true,
|
||||
install_dir: join_paths(data_dir, 'applications')
|
||||
input: 'gala-other.desktop.in',
|
||||
output: 'gala-other.desktop',
|
||||
po_dir: join_paths(meson.source_root (), 'po'),
|
||||
type: 'desktop',
|
||||
install: true,
|
||||
install_dir: join_paths(data_dir, 'applications')
|
||||
)
|
||||
install_data(['gala.desktop', 'gala-wayland.desktop'], install_dir: join_paths(data_dir, 'applications'))
|
||||
install_data(files('20_elementary.pantheon.wm.gschema.override'), install_dir: join_paths(data_dir, 'glib-2.0', 'schemas'))
|
||||
|
@ -1,29 +1,29 @@
|
||||
gala_lib_sources = files(
|
||||
'ActivatableComponent.vala',
|
||||
'Constants.vala',
|
||||
'Plugin.vala',
|
||||
'Utils.vala',
|
||||
'WindowIcon.vala',
|
||||
'WindowManager.vala',
|
||||
'ActivatableComponent.vala',
|
||||
'Constants.vala',
|
||||
'Plugin.vala',
|
||||
'Utils.vala',
|
||||
'WindowIcon.vala',
|
||||
'WindowManager.vala',
|
||||
)
|
||||
|
||||
gala_resources = gnome.compile_resources(
|
||||
'gala-resources',
|
||||
join_paths(meson.source_root(), 'data', 'gala.gresource.xml'),
|
||||
source_dir: join_paths(meson.source_root(), 'data'),
|
||||
c_name: 'gala',
|
||||
'gala-resources',
|
||||
join_paths(meson.source_root(), 'data', 'gala.gresource.xml'),
|
||||
source_dir: join_paths(meson.source_root(), 'data'),
|
||||
c_name: 'gala',
|
||||
)
|
||||
|
||||
gala_lib = shared_library(
|
||||
'gala',
|
||||
gala_lib_sources,
|
||||
gala_resources,
|
||||
dependencies: [gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: [true, join_paths(get_option('includedir'), 'gala'), true],
|
||||
install_rpath: mutter_typelib_dir,
|
||||
version : '0.0.0'
|
||||
'gala',
|
||||
gala_lib_sources,
|
||||
gala_resources,
|
||||
dependencies: [gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: [true, join_paths(get_option('includedir'), 'gala'), true],
|
||||
install_rpath: mutter_typelib_dir,
|
||||
version : '0.0.0'
|
||||
)
|
||||
|
||||
install_data('gala.deps', install_dir: join_paths(get_option('datadir'), 'vala', 'vapi'))
|
||||
@ -31,14 +31,14 @@ install_data('gala.deps', install_dir: join_paths(get_option('datadir'), 'vala',
|
||||
gala_dep = declare_dependency(link_with: [gala_lib], include_directories: include_directories('.'))
|
||||
|
||||
pkg.generate(
|
||||
gala_lib,
|
||||
filebase: 'gala',
|
||||
name: 'Gala',
|
||||
description: 'Library to develop plugins for Gala',
|
||||
subdirs: 'gala',
|
||||
requires: [glib_dep, gobject_dep, libmutter_dep],
|
||||
variables: [
|
||||
'datarootdir=${prefix}/@0@'.format(get_option('datadir')),
|
||||
'pkgdatadir=${datarootdir}/gala'
|
||||
]
|
||||
gala_lib,
|
||||
filebase: 'gala',
|
||||
name: 'Gala',
|
||||
description: 'Library to develop plugins for Gala',
|
||||
subdirs: 'gala',
|
||||
requires: [glib_dep, gobject_dep, libmutter_dep],
|
||||
variables: [
|
||||
'datarootdir=${prefix}/@0@'.format(get_option('datadir')),
|
||||
'pkgdatadir=${datarootdir}/gala'
|
||||
]
|
||||
)
|
||||
|
148
meson.build
148
meson.build
@ -1,8 +1,8 @@
|
||||
project('gala',
|
||||
'c', 'vala',
|
||||
version: '3.3.2',
|
||||
meson_version: '>= 0.48.0',
|
||||
license: 'GPL3',
|
||||
'c', 'vala',
|
||||
version: '3.3.2',
|
||||
meson_version: '>= 0.48.0',
|
||||
license: 'GPL3',
|
||||
)
|
||||
|
||||
is_release = false
|
||||
@ -17,7 +17,7 @@ gala_version = meson.project_version()
|
||||
vala_version_required = '0.28.0'
|
||||
vala = meson.get_compiler('vala')
|
||||
if not vala.version().version_compare('>= @0@'.format(vala_version_required))
|
||||
error('Valac >= @0@ required!'.format(vala_version_required))
|
||||
error('Valac >= @0@ required!'.format(vala_version_required))
|
||||
endif
|
||||
|
||||
vapi_dir = meson.current_source_dir() / 'vapi'
|
||||
@ -35,13 +35,13 @@ conf.set_quoted('RESOURCEPATH', '/org/pantheon/desktop/gala')
|
||||
conf.set_quoted('VERSION', gala_version)
|
||||
conf.set_quoted('SCHEMA', 'org.pantheon.desktop.gala')
|
||||
config_h = configure_file(
|
||||
output: 'config.h',
|
||||
configuration: conf
|
||||
output: 'config.h',
|
||||
configuration: conf
|
||||
)
|
||||
|
||||
config_dep = declare_dependency(
|
||||
dependencies: vala.find_library('config', dirs: vapi_dir),
|
||||
sources: config_h
|
||||
dependencies: vala.find_library('config', dirs: vapi_dir),
|
||||
sources: config_h
|
||||
)
|
||||
|
||||
config_inc_dir = include_directories('.')
|
||||
@ -50,28 +50,28 @@ customconf = configuration_data()
|
||||
customconf.set('GETTEXT_PACKAGE', meson.project_name())
|
||||
|
||||
add_project_arguments([
|
||||
'--target-glib=2.44',
|
||||
'--hide-internal',
|
||||
'--enable-deprecated',
|
||||
'--vapidir=' + vapi_dir,
|
||||
],
|
||||
language: 'vala',
|
||||
'--target-glib=2.44',
|
||||
'--hide-internal',
|
||||
'--enable-deprecated',
|
||||
'--vapidir=' + vapi_dir,
|
||||
],
|
||||
language: 'vala',
|
||||
)
|
||||
add_project_arguments([
|
||||
'-Wno-discarded-qualifiers',
|
||||
'-Wno-incompatible-pointer-types',
|
||||
'-Wno-unused',
|
||||
'-Wl,--enable-new-dtags',
|
||||
'-Wno-discarded-qualifiers',
|
||||
'-Wno-incompatible-pointer-types',
|
||||
'-Wno-unused',
|
||||
'-Wl,--enable-new-dtags',
|
||||
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||
'-DGNOME_DESKTOP_USE_UNSTABLE_API',
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||
'-DGNOME_DESKTOP_USE_UNSTABLE_API',
|
||||
|
||||
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44',
|
||||
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44',
|
||||
'-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_10',
|
||||
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_10',
|
||||
],
|
||||
language: 'c',
|
||||
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_44',
|
||||
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_44',
|
||||
'-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_10',
|
||||
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_10',
|
||||
],
|
||||
language: 'c',
|
||||
)
|
||||
|
||||
|
||||
@ -101,70 +101,70 @@ vala_flags = []
|
||||
|
||||
mutter328_dep = dependency('libmutter-2', version: ['>= 3.27', '< 3.29'], required: false)
|
||||
if mutter328_dep.found()
|
||||
libmutter_dep = dependency('libmutter-2', version: '>= 3.27.92')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-2'), dependency('mutter-cogl-pango-2'),
|
||||
dependency('mutter-cogl-path-2'), dependency('mutter-clutter-2')
|
||||
]
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
libmutter_dep = dependency('libmutter-2', version: '>= 3.27.92')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-2'), dependency('mutter-cogl-pango-2'),
|
||||
dependency('mutter-cogl-path-2'), dependency('mutter-clutter-2')
|
||||
]
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter330_dep = dependency('libmutter-3', version: ['>= 3.29.4', '< 3.31'], required: false)
|
||||
if mutter330_dep.found()
|
||||
libmutter_dep = dependency('libmutter-3', version: '>= 3.29.4')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-3'), dependency('mutter-cogl-pango-3'),
|
||||
dependency('mutter-cogl-path-3'), dependency('mutter-clutter-3')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
libmutter_dep = dependency('libmutter-3', version: '>= 3.29.4')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-3'), dependency('mutter-cogl-pango-3'),
|
||||
dependency('mutter-cogl-path-3'), dependency('mutter-clutter-3')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter332_dep = dependency('libmutter-4', version: ['>= 3.31.2', '< 3.34'], required: false)
|
||||
if mutter332_dep.found()
|
||||
libmutter_dep = dependency('libmutter-4', version: '>= 3.31.2')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-4'), dependency('mutter-cogl-pango-4'),
|
||||
dependency('mutter-cogl-path-4'), dependency('mutter-clutter-4')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
libmutter_dep = dependency('libmutter-4', version: '>= 3.31.2')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-4'), dependency('mutter-cogl-pango-4'),
|
||||
dependency('mutter-cogl-path-4'), dependency('mutter-clutter-4')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter334_dep = dependency('libmutter-5', version: ['>= 3.34', '< 3.35.1'], required: false)
|
||||
if mutter334_dep.found()
|
||||
libmutter_dep = dependency('libmutter-5', version: '>= 3.34')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-5'), dependency('mutter-cogl-pango-5'),
|
||||
dependency('mutter-cogl-path-5'), dependency('mutter-clutter-5')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
libmutter_dep = dependency('libmutter-5', version: '>= 3.34')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-5'), dependency('mutter-cogl-pango-5'),
|
||||
dependency('mutter-cogl-path-5'), dependency('mutter-clutter-5')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
mutter336_dep = dependency('libmutter-6', version: ['>= 3.35.1', '< 3.38'], required: false)
|
||||
if mutter336_dep.found()
|
||||
libmutter_dep = dependency('libmutter-6', version: '>= 3.35.1')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-6'), dependency('mutter-cogl-pango-6'),
|
||||
dependency('mutter-cogl-path-6'), dependency('mutter-clutter-6')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334', '--define', 'HAS_MUTTER336']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
libmutter_dep = dependency('libmutter-6', version: '>= 3.35.1')
|
||||
mutter_dep = [
|
||||
libmutter_dep,
|
||||
dependency('mutter-cogl-6'), dependency('mutter-cogl-pango-6'),
|
||||
dependency('mutter-cogl-path-6'), dependency('mutter-clutter-6')
|
||||
]
|
||||
vala_flags = ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334', '--define', 'HAS_MUTTER336']
|
||||
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
|
||||
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
|
||||
endif
|
||||
|
||||
if mutter_dep.length() == 0
|
||||
error ('No supported mutter library found!')
|
||||
error ('No supported mutter library found!')
|
||||
endif
|
||||
|
||||
mutter_typelib_dir = libmutter_dep.get_pkgconfig_variable('typelibdir')
|
||||
@ -183,13 +183,13 @@ subdir('plugins/pip')
|
||||
subdir('plugins/template')
|
||||
subdir('plugins/zoom')
|
||||
if get_option('documentation')
|
||||
subdir('docs')
|
||||
subdir('docs')
|
||||
endif
|
||||
subdir('po')
|
||||
|
||||
vapigen = find_program('vapigen', required: false)
|
||||
if vapigen.found()
|
||||
subdir('vapi')
|
||||
subdir('vapi')
|
||||
endif
|
||||
|
||||
meson.add_install_script('build-aux/meson/post_install.py')
|
||||
|
@ -1,14 +1,14 @@
|
||||
gala_maskcorners_sources = [
|
||||
'Main.vala',
|
||||
'Settings.vala',
|
||||
'Main.vala',
|
||||
'Settings.vala',
|
||||
]
|
||||
|
||||
gala_maskcorners_lib = shared_library(
|
||||
'gala-maskcorners',
|
||||
gala_maskcorners_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
'gala-maskcorners',
|
||||
gala_maskcorners_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
)
|
||||
|
@ -1,17 +1,17 @@
|
||||
gala_pip_sources = [
|
||||
'Main.vala',
|
||||
'MoveAction.vala',
|
||||
'PopupWindow.vala',
|
||||
'SelectionArea.vala',
|
||||
'ShadowEffect.vala',
|
||||
'Main.vala',
|
||||
'MoveAction.vala',
|
||||
'PopupWindow.vala',
|
||||
'SelectionArea.vala',
|
||||
'ShadowEffect.vala',
|
||||
]
|
||||
|
||||
gala_pip_lib = shared_library(
|
||||
'gala-pip',
|
||||
gala_pip_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
'gala-pip',
|
||||
gala_pip_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
)
|
||||
|
@ -33,26 +33,26 @@ which you can almost always use 0, refer to the vapi for more details, and final
|
||||
your function as arguments. Its delegate is:
|
||||
|
||||
public delegate void KeyHandlerFunc (Meta.Display display, Meta.Screen screen,
|
||||
Meta.Window? window, X.Event event, Meta.KeyBinding binding);
|
||||
Meta.Window? window, X.Event event, Meta.KeyBinding binding);
|
||||
|
||||
So it'd be something like
|
||||
|
||||
void initialize (Gala.WindowManager wm)
|
||||
{
|
||||
[...]
|
||||
var display = wm.get_screen ().get_display ();
|
||||
var schema = new GLib.Settings ("org.pantheon.desktop.gala.plugins");
|
||||
display.add_keybinding ("my-shortcut", schema, 0, my_handler);
|
||||
[...]
|
||||
[...]
|
||||
var display = wm.get_screen ().get_display ();
|
||||
var schema = new GLib.Settings ("org.pantheon.desktop.gala.plugins");
|
||||
display.add_keybinding ("my-shortcut", schema, 0, my_handler);
|
||||
[...]
|
||||
}
|
||||
void my_handler (Meta.Display display, Meta.Screen screen, Meta.Window? window,
|
||||
X.Event event, Meta.KeyBinding binding)
|
||||
X.Event event, Meta.KeyBinding binding)
|
||||
{
|
||||
print ("Shortcut hit! D:");
|
||||
print ("Shortcut hit! D:");
|
||||
}
|
||||
void destroy ()
|
||||
{
|
||||
wm.get_screen ().get_display ().remove_keybinding ("my-shortcut");
|
||||
wm.get_screen ().get_display ().remove_keybinding ("my-shortcut");
|
||||
}
|
||||
|
||||
Overriding default keybindings
|
||||
|
@ -1,13 +1,13 @@
|
||||
gala_template_sources = [
|
||||
'Main.vala',
|
||||
'Main.vala',
|
||||
]
|
||||
|
||||
gala_template_lib = shared_library(
|
||||
'gala-template',
|
||||
gala_template_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: false,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
'gala-template',
|
||||
gala_template_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: false,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
)
|
||||
|
@ -1,13 +1,13 @@
|
||||
gala_zoom_sources = [
|
||||
'Main.vala',
|
||||
'Main.vala',
|
||||
]
|
||||
|
||||
gala_zoom_lib = shared_library(
|
||||
'gala-zoom',
|
||||
gala_zoom_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
'gala-zoom',
|
||||
gala_zoom_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install: true,
|
||||
install_dir: plugins_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
i18n.gettext(
|
||||
meson.project_name(),
|
||||
preset: 'glib',
|
||||
args: [
|
||||
'--default-domain=' + meson.project_name(),
|
||||
'--package-version=' + meson.project_version(),
|
||||
'--copyright-holder=The Gala Developers',
|
||||
'--msgid-bugs-address=https://github.com/elementary/gala/issues',
|
||||
],
|
||||
meson.project_name(),
|
||||
preset: 'glib',
|
||||
args: [
|
||||
'--default-domain=' + meson.project_name(),
|
||||
'--package-version=' + meson.project_version(),
|
||||
'--copyright-holder=The Gala Developers',
|
||||
'--msgid-bugs-address=https://github.com/elementary/gala/issues',
|
||||
],
|
||||
)
|
||||
|
@ -1,51 +1,51 @@
|
||||
gala_bin_sources = files(
|
||||
'DBus.vala',
|
||||
'DBusAccelerator.vala',
|
||||
'DockThemeManager.vala',
|
||||
'DragDropAction.vala',
|
||||
'InternalUtils.vala',
|
||||
'KeyboardManager.vala',
|
||||
'NotificationStack.vala',
|
||||
'Main.vala',
|
||||
'MediaFeedback.vala',
|
||||
'PluginManager.vala',
|
||||
'ScreenSaverManager.vala',
|
||||
'ScreenshotManager.vala',
|
||||
'SessionManager.vala',
|
||||
'Settings.vala',
|
||||
'ShadowEffect.vala',
|
||||
'WindowListener.vala',
|
||||
'WindowManager.vala',
|
||||
'WorkspaceManager.vala',
|
||||
'Background/Animation.vala',
|
||||
'Background/Background.vala',
|
||||
'Background/BackgroundCache.vala',
|
||||
'Background/BackgroundContainer.vala',
|
||||
'Background/BackgroundManager.vala',
|
||||
'Background/BackgroundSource.vala',
|
||||
'Background/SystemBackground.vala',
|
||||
'Widgets/IconGroup.vala',
|
||||
'Widgets/IconGroupContainer.vala',
|
||||
'Widgets/MonitorClone.vala',
|
||||
'Widgets/MultitaskingView.vala',
|
||||
'Widgets/PixelPicker.vala',
|
||||
'Widgets/SafeWindowClone.vala',
|
||||
'Widgets/ScreenShield.vala',
|
||||
'Widgets/SelectionArea.vala',
|
||||
'Widgets/WindowClone.vala',
|
||||
'Widgets/WindowCloneContainer.vala',
|
||||
'Widgets/WindowIconActor.vala',
|
||||
'Widgets/WindowOverview.vala',
|
||||
'Widgets/WindowSwitcher.vala',
|
||||
'Widgets/WorkspaceClone.vala',
|
||||
'Widgets/WorkspaceInsertThumb.vala',
|
||||
'DBus.vala',
|
||||
'DBusAccelerator.vala',
|
||||
'DockThemeManager.vala',
|
||||
'DragDropAction.vala',
|
||||
'InternalUtils.vala',
|
||||
'KeyboardManager.vala',
|
||||
'NotificationStack.vala',
|
||||
'Main.vala',
|
||||
'MediaFeedback.vala',
|
||||
'PluginManager.vala',
|
||||
'ScreenSaverManager.vala',
|
||||
'ScreenshotManager.vala',
|
||||
'SessionManager.vala',
|
||||
'Settings.vala',
|
||||
'ShadowEffect.vala',
|
||||
'WindowListener.vala',
|
||||
'WindowManager.vala',
|
||||
'WorkspaceManager.vala',
|
||||
'Background/Animation.vala',
|
||||
'Background/Background.vala',
|
||||
'Background/BackgroundCache.vala',
|
||||
'Background/BackgroundContainer.vala',
|
||||
'Background/BackgroundManager.vala',
|
||||
'Background/BackgroundSource.vala',
|
||||
'Background/SystemBackground.vala',
|
||||
'Widgets/IconGroup.vala',
|
||||
'Widgets/IconGroupContainer.vala',
|
||||
'Widgets/MonitorClone.vala',
|
||||
'Widgets/MultitaskingView.vala',
|
||||
'Widgets/PixelPicker.vala',
|
||||
'Widgets/SafeWindowClone.vala',
|
||||
'Widgets/ScreenShield.vala',
|
||||
'Widgets/SelectionArea.vala',
|
||||
'Widgets/WindowClone.vala',
|
||||
'Widgets/WindowCloneContainer.vala',
|
||||
'Widgets/WindowIconActor.vala',
|
||||
'Widgets/WindowOverview.vala',
|
||||
'Widgets/WindowSwitcher.vala',
|
||||
'Widgets/WorkspaceClone.vala',
|
||||
'Widgets/WorkspaceInsertThumb.vala',
|
||||
)
|
||||
|
||||
gala_bin = executable(
|
||||
'gala',
|
||||
gala_bin_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
install: true,
|
||||
'gala',
|
||||
gala_bin_sources,
|
||||
dependencies: [gala_dep, gala_base_dep],
|
||||
include_directories: config_inc_dir,
|
||||
install_rpath: mutter_typelib_dir,
|
||||
install: true,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user