summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-08-20 16:42:40 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-08-20 16:42:40 +0200
commita5e45eeb0774dcf4730aa5f33881f9b16e677cc4 (patch)
treec93aed5a9ff6f7801c14a6e440ef2a05a60e4816
parent550c91fa188efd39c9cea43f894b45716b5cc6d5 (diff)
downloadtile-a5e45eeb0774dcf4730aa5f33881f9b16e677cc4.tar.gz
tile-a5e45eeb0774dcf4730aa5f33881f9b16e677cc4.tar.bz2
New action system
-rw-r--r--tile.c8
-rw-r--r--tile.xml.in32
2 files changed, 12 insertions, 28 deletions
diff --git a/tile.c b/tile.c
index d7ee9de..fdf39a7 100644
--- a/tile.c
+++ b/tile.c
@@ -1155,10 +1155,10 @@ tileInitDisplay (CompPlugin *p,
tileSetTileVerticallyInitiate (d, tileVertically);
tileSetTileHorizontallyInitiate (d, tileHorizontally);
- tileSetTileTileInitiate (d, tileTile);
- tileSetTileCascadeInitiate (d, tileCascade);
- tileSetTileRestoreInitiate (d, tileRestore);
- tileSetTileToggleInitiate (d, tileToggle);
+ tileSetTileTileKeyInitiate (d, tileTile);
+ tileSetTileCascadeKeyInitiate (d, tileCascade);
+ tileSetTileRestoreKeyInitiate (d, tileRestore);
+ tileSetTileToggleKeyInitiate (d, tileToggle);
/* Record the display */
d->privates[displayPrivateIndex].ptr = td;
diff --git a/tile.xml.in b/tile.xml.in
index 8fd7c4b..075c0c4 100644
--- a/tile.xml.in
+++ b/tile.xml.in
@@ -102,46 +102,30 @@
<option name="tile_vertically" type="action">
<_short>Tile Windows Vertically</_short>
<_long>Move and resize all visible windows so that they have full height, same width and occupy whole screen.</_long>
- <allowed/>
- <default/>
</option>
<option name="tile_horizontally" type="action">
<_short>Tile Windows Horizontally</_short>
<_long>Move and resize all visible windows so that they have full width, same height and occupy whole screen.</_long>
- <allowed/>
- <default/>
</option>
- <option name="tile_tile" type="action">
+ <option name="tile_tile_key" type="key">
<_short>Tile Windows</_short>
<_long>Move and resize all visible windows both vertically and horizontally, so that the occupy whole screen and are in a grid.</_long>
- <allowed key="true"/>
- <default>
- <key>&lt;Super&gt;&lt;Shift&gt;a</key>
- </default>
+ <default>&lt;Super&gt;&lt;Shift&gt;a</default>
</option>
- <option name="tile_cascade" type="action">
+ <option name="tile_cascade_key" type="key">
<_short>Cascade Windows</_short>
<_long>Move and resize all visible windows with the delta value set for cascading.</_long>
- <allowed key="true"/>
- <default>
- <key>&lt;Super&gt;&lt;Shift&gt;s</key>
- </default>
+ <default>&lt;Super&gt;&lt;Shift&gt;s</default>
</option>
- <option name="tile_restore" type="action">
+ <option name="tile_restore_key" type="key">
<_short>Restore Windows</_short>
<_long>Restore windows to their original position they had before tiling.</_long>
- <allowed key="true"/>
- <default>
- <key>&lt;Super&gt;&lt;Shift&gt;z</key>
- </default>
+ <default>&lt;Super&gt;&lt;Shift&gt;z</default>
</option>
- <option name="tile_toggle" type="action">
+ <option name="tile_toggle_key" type="key">
<_short>Toggle Tiling</_short>
<_long>Toggle between tile and restore</_long>
- <allowed key="true"/>
- <default>
- <key>&lt;Super&gt;&lt;Shift&gt;x</key>
- </default>
+ <default>&lt;Super&gt;&lt;Shift&gt;x</default>
</option>
</group>
</display>