summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-06-18 16:07:22 +0200
committerkotontrion <[email protected]>2024-06-18 16:07:22 +0200
commit2c701b970e7b2b208d8d12d3ea34078236d3f62e (patch)
treed4b1a39fb937d2e65cc6351fd867b9b1db46b5e7
parent13beb20a122338b01e950f7df7b98e1287a0a2c8 (diff)
add missing methods
-rw-r--r--src/trayItem.vala28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/trayItem.vala b/src/trayItem.vala
index f89242c..4af3398 100644
--- a/src/trayItem.vala
+++ b/src/trayItem.vala
@@ -200,6 +200,34 @@ namespace AstalTray {
}
});
}
+
+ public void activate(int x, int y) {
+ try {
+ proxy.Activate(x, y);
+ } catch (Error e) {
+ if(e.domain != DBusError.quark() || e.code != DBusError.UNKNOWN_METHOD)
+ warning("%s\n", e.message);
+ }
+ }
+
+ public void secondary_activate(int x, int y) {
+ try {
+ proxy.SecondaryActivate(x, y);
+ } catch (Error e) {
+ if(e.domain != DBusError.quark() || e.code != DBusError.UNKNOWN_METHOD)
+ warning("%s\n", e.message);
+ }
+ }
+
+ public void scroll(int delta, string orientation) {
+ try {
+ proxy.Scroll(delta, orientation);
+ } catch (Error e) {
+ if(e.domain != DBusError.quark() || e.code != DBusError.UNKNOWN_METHOD)
+ warning("%s\n", e.message);
+ }
+ }
+
public DbusmenuGtk.Menu? create_menu() {
if(proxy.Menu == null) return null;