aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-06-13 19:13:49 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-06-13 19:13:49 +0800
commit24902d9f75bfe9aad3e87db9d08620c2cb0e217f (patch)
tree0571ae1721cb5b7dffe3d5f6e559aadee681fbfb /src
parentbfb8256258a6a73ff25cc421806b7d99f156784c (diff)
downloadgsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar.gz
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar.bz2
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar.lz
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar.xz
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.tar.zst
gsoc2013-empathy-24902d9f75bfe9aad3e87db9d08620c2cb0e217f.zip
Do not show the keypad when the media channel does not have the DTMF interface (Alban Crequy)
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1162 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 67a3d87a8..8a33e4639 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -340,6 +340,7 @@ call_window_update (EmpathyCallWindow *window)
EmpathyTpCallStream *audio_stream;
EmpathyTpCallStream *video_stream;
gboolean is_incoming;
+ gboolean has_dtmf;
gchar *title;
g_object_get (window->call,
@@ -348,6 +349,7 @@ call_window_update (EmpathyCallWindow *window)
"video-stream", &video_stream,
"contact", &contact,
"is-incoming", &is_incoming,
+ "has-dtmf", &has_dtmf,
NULL);
if (video_stream->state > audio_stream->state)
@@ -359,6 +361,15 @@ call_window_update (EmpathyCallWindow *window)
"is-incoming: %d video-stream direction: %d",
window->status, stream_state, is_incoming, video_stream->direction);
+ if (has_dtmf)
+ {
+ gtk_widget_show (window->keypad_expander);
+ }
+ else
+ {
+ gtk_widget_hide (window->keypad_expander);
+ }
+
/* Depending on the status we have to set:
* - window's title
* - status's label