Commit 6483d620 authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Add dbus patches from upstream

https://github.com/mumble-voip/mumble/pull/3675
parent 32a90ef2
mumble (1.3.0+dfsg-1.1) unstable; urgency=medium
* Add dbus patches from https://github.com/mumble-voip/mumble/pull/3675
-- Jason Rhinelander <jason@imaginary.ca> Sat, 29 Feb 2020 18:03:11 -0400
mumble (1.3.0+dfsg-1) unstable; urgency=medium
[ Melvin Vermeeren ]
......
From: Jason Rhinelander <jason@imaginary.ca>
Date: Sat, 29 Feb 2020 18:01:04 -0400
Subject: dbus push to talk
https://github.com/mumble-voip/mumble/pull/3675
---
src/mumble/DBus.cpp | 8 ++++++++
src/mumble/DBus.h | 2 ++
2 files changed, 10 insertions(+)
diff --git a/src/mumble/DBus.cpp b/src/mumble/DBus.cpp
index 6fcde04..5260e1b 100644
--- a/src/mumble/DBus.cpp
+++ b/src/mumble/DBus.cpp
@@ -97,3 +97,11 @@ bool MumbleDBus::isSelfMuted() {
bool MumbleDBus::isSelfDeaf() {
return g.s.bDeaf;
}
+
+void MumbleDBus::startTalking() {
+ g.mw->on_PushToTalk_triggered(true, QVariant());
+}
+
+void MumbleDBus::stopTalking () {
+ g.mw->on_PushToTalk_triggered(false, QVariant());
+}
diff --git a/src/mumble/DBus.h b/src/mumble/DBus.h
index 1505017..bd28e5f 100644
--- a/src/mumble/DBus.h
+++ b/src/mumble/DBus.h
@@ -28,6 +28,8 @@ class MumbleDBus : public QDBusAbstractAdaptor {
void setSelfDeaf(bool deafen);
bool isSelfMuted();
bool isSelfDeaf();
+ void startTalking();
+ void stopTalking();
};
#endif
......@@ -6,3 +6,4 @@
44-add-speechd-header.diff
46-var-run-to-run.diff
52-use-update-rc.d-for-disable.diff
0009-dbus-push-to-talk.patch
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment