mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-13 16:07:36 +00:00
parent
2d18667ee7
commit
c37e9d8462
2 changed files with 20 additions and 0 deletions
|
@ -182,6 +182,21 @@ on_handle_call_send_dtmf (CallsDBusCallsCall *skeleton,
|
|||
}
|
||||
|
||||
|
||||
static gboolean
|
||||
on_handle_call_silence (CallsDBusCallsCall *skeleton,
|
||||
GDBusMethodInvocation *invocation,
|
||||
CallsCall *call)
|
||||
{
|
||||
g_return_val_if_fail (CALLS_DBUS_IS_CALLS_CALL (skeleton), FALSE);
|
||||
g_return_val_if_fail (CALLS_IS_CALL (call), FALSE);
|
||||
|
||||
calls_call_silence_ring (call);
|
||||
|
||||
calls_dbus_calls_call_complete_silence (skeleton, invocation);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
call_added_cb (CallsDBusManager *self, CallsCall *call)
|
||||
{
|
||||
|
@ -203,6 +218,7 @@ call_added_cb (CallsDBusManager *self, CallsCall *call)
|
|||
"object_signal::handle-accept", G_CALLBACK (on_handle_call_accept), call,
|
||||
"object_signal::handle-hangup", G_CALLBACK (on_handle_call_hangup), call,
|
||||
"object-signal::handle-send_dtmf", G_CALLBACK (on_handle_call_send_dtmf), call,
|
||||
"object_signal::handle-silence", G_CALLBACK (on_handle_call_silence), call,
|
||||
NULL);
|
||||
g_object_bind_property (call, "state", iface, "state", G_BINDING_SYNC_CREATE);
|
||||
g_object_bind_property (call, "inbound", iface, "inbound", G_BINDING_SYNC_CREATE);
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
</doc:doc>
|
||||
</arg>
|
||||
</method>
|
||||
<method name="Silence"/>
|
||||
<doc:doc>
|
||||
<doc:summary>Silence the ringing</doc:summary>
|
||||
</doc:doc>
|
||||
<property name="Inbound" type="b" access="read"/>
|
||||
<property name="State" type="u" access="read"/>
|
||||
<property name="Id" type="s" access="read">
|
||||
|
|
Loading…
Reference in a new issue