aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-06-13 19:13:54 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-06-13 19:13:54 +0800
commit814548b3fe862f4ee1d8817bac989031eea983bc (patch)
tree5ba5e291e290567b061683fb9eb1fab2753f1ebd /libempathy
parent21d5cc59e020f1a3b01028398aaa4e42cad0c3b2 (diff)
downloadgsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar.gz
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar.bz2
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar.lz
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar.xz
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.tar.zst
gsoc2013-empathy-814548b3fe862f4ee1d8817bac989031eea983bc.zip
Replace the has-dtmf property by empathy_tp_call_has_dtmf() (Alban Crequy)
svn path=/trunk/; revision=1165
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-call.c18
-rw-r--r--libempathy/empathy-tp-call.h1
2 files changed, 10 insertions, 9 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 1f3371eea..fd3503ca4 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -62,7 +62,6 @@ enum
PROP_CHANNEL,
PROP_CONTACT,
PROP_IS_INCOMING,
- PROP_HAS_DTMF,
PROP_STATUS,
PROP_AUDIO_STREAM,
PROP_VIDEO_STREAM
@@ -573,10 +572,6 @@ tp_call_get_property (GObject *object,
case PROP_IS_INCOMING:
g_value_set_boolean (value, priv->is_incoming);
break;
- case PROP_HAS_DTMF:
- g_value_set_boolean (value, tp_proxy_has_interface_by_id (priv->channel,
- TP_IFACE_QUARK_CHANNEL_INTERFACE_DTMF));
- break;
case PROP_STATUS:
g_value_set_uint (value, priv->status);
break;
@@ -619,10 +614,6 @@ empathy_tp_call_class_init (EmpathyTpCallClass *klass)
g_param_spec_boolean ("is-incoming", "Is media stream incoming",
"Is media stream incoming", FALSE, G_PARAM_READABLE |
G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
- g_object_class_install_property (object_class, PROP_HAS_DTMF,
- g_param_spec_boolean ("has-dtmf", "Has the media channel DTMF",
- "Has the media channel DTMF", FALSE, G_PARAM_READABLE |
- G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
g_object_class_install_property (object_class, PROP_STATUS,
g_param_spec_uint ("status", "Call status",
"Call status", 0, 255, 0, G_PARAM_READABLE | G_PARAM_STATIC_NICK |
@@ -851,3 +842,12 @@ empathy_tp_call_stop_tone (EmpathyTpCall *call)
"stoping tone", NULL, G_OBJECT (call));
}
+gboolean
+empathy_tp_call_has_dtmf (EmpathyTpCall *call)
+{
+ EmpathyTpCallPriv *priv = GET_PRIV (call);
+
+ return tp_proxy_has_interface_by_id (priv->channel,
+ TP_IFACE_QUARK_CHANNEL_INTERFACE_DTMF);
+}
+
diff --git a/libempathy/empathy-tp-call.h b/libempathy/empathy-tp-call.h
index 644d778fb..5da79fa13 100644
--- a/libempathy/empathy-tp-call.h
+++ b/libempathy/empathy-tp-call.h
@@ -86,6 +86,7 @@ void empathy_tp_call_mute_output (EmpathyTpCall *call, gboolean is_muted);
void empathy_tp_call_mute_input (EmpathyTpCall *call, gboolean is_muted);
void empathy_tp_call_start_tone (EmpathyTpCall *call, TpDTMFEvent event);
void empathy_tp_call_stop_tone (EmpathyTpCall *call);
+gboolean empathy_tp_call_has_dtmf (EmpathyTpCall *call);
G_END_DECLS