summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-08-20 16:06:40 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-08-20 16:06:40 +0200
commit208bd451664fc9bc49c3ab87f657d49a085a3d0f (patch)
tree72e9857c3be9390d38e0b1a637e5d831b66d1eb2
parent2a67cb5e8dbfbc78c4fbe707064327d953a8b63a (diff)
downloadfakeargb-208bd451664fc9bc49c3ab87f657d49a085a3d0f.tar.gz
fakeargb-208bd451664fc9bc49c3ab87f657d49a085a3d0f.tar.bz2
New action system
-rw-r--r--fakeargb.c3
-rw-r--r--fakeargb.xml.in11
2 files changed, 8 insertions, 6 deletions
diff --git a/fakeargb.c b/fakeargb.c
index 5bcb4b9..cbf40c4 100644
--- a/fakeargb.c
+++ b/fakeargb.c
@@ -211,7 +211,8 @@ static Bool fakeInitDisplay(CompPlugin * p, CompDisplay * d)
return FALSE;
}
- fakeargbSetWindowToggleInitiate(d, fakeToggle);
+ fakeargbSetWindowToggleKeyInitiate(d, fakeToggle);
+ fakeargbSetWindowToggleButtonInitiate(d, fakeToggle);
d->privates[displayPrivateIndex].ptr = fd;
diff --git a/fakeargb.xml.in b/fakeargb.xml.in
index ae85a29..1aaf4e6 100644
--- a/fakeargb.xml.in
+++ b/fakeargb.xml.in
@@ -4,13 +4,14 @@
<_long>Alter window opacity based on color.</_long>
<category>Extras</category>
<display>
- <option name="window_toggle" type="action">
+ <option name="window_toggle_key" type="key">
+ <_short>Toggle Window Fake ARGB</_short>
+ <_long>Toggle window fake ARGB.</_long>
+ <default>&lt;Super&gt;f</default>
+ </option>
+ <option name="window_toggle_button" type="button">
<_short>Toggle Window Fake ARGB</_short>
<_long>Toggle window fake ARGB.</_long>
- <allowed key="true" button="true"/>
- <default>
- <key>&lt;Super&gt;f</key>
- </default>
</option>
</display>
</plugin>