aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-05-02 06:02:48 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-05-02 06:02:48 +0800
commit6d23f46e64152fa219b5ad8a5455996b36e9c6db (patch)
treea84cc8c5f884d0d98cbfcb83eba5e061ae57f0f2 /src/empathy-call-window.c
parent16bb46bc5b1efb53ea813e3e1351fbbdc8b02fe3 (diff)
downloadgsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.gz
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.bz2
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.lz
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.xz
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.zst
gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.zip
Keypad is unsensitive if the call is not ACCEPTED
svn path=/trunk/; revision=1072
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index cddb11433..2d52fcf7c 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -58,6 +58,7 @@ typedef struct
GtkWidget *video_button;
GtkWidget *hang_up_button;
GtkWidget *confirmation_dialog;
+ GtkWidget *keypad_expander;
} EmpathyCallWindow;
static gboolean
@@ -140,6 +141,7 @@ call_window_finalize (EmpathyCallWindow *window)
gtk_widget_set_sensitive (window->video_button, FALSE);
gtk_widget_set_sensitive (window->output_volume_button, FALSE);
gtk_widget_set_sensitive (window->input_volume_button, FALSE);
+ gtk_widget_set_sensitive (window->keypad_expander, FALSE);
if (window->call)
{
@@ -365,6 +367,7 @@ call_window_update (EmpathyCallWindow *window)
gtk_widget_set_sensitive (window->output_volume_button, FALSE);
gtk_widget_set_sensitive (window->input_volume_button, FALSE);
gtk_widget_set_sensitive (window->hang_up_button, FALSE);
+ gtk_widget_set_sensitive (window->keypad_expander, FALSE);
}
else if (window->status == EMPATHY_TP_CALL_STATUS_PENDING)
{
@@ -410,6 +413,7 @@ call_window_update (EmpathyCallWindow *window)
gtk_widget_set_sensitive (window->output_volume_button, TRUE);
gtk_widget_set_sensitive (window->input_volume_button, TRUE);
gtk_widget_set_sensitive (window->hang_up_button, TRUE);
+ gtk_widget_set_sensitive (window->keypad_expander, TRUE);
}
else if (window->status == EMPATHY_TP_CALL_STATUS_CLOSED)
call_window_finalize (window);
@@ -480,6 +484,7 @@ empathy_call_window_new (EmpathyTpCall *call)
"status_label", &window->status_label,
"video_button", &window->video_button,
"hang_up_button", &window->hang_up_button,
+ "keypad_expander", &window->keypad_expander,
NULL);
g_free (filename);