diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-16 19:54:05 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-27 21:28:49 +0800 |
commit | a8f5972679288f101fc0ae993c34aa64ccc5acec (patch) | |
tree | 68d39b05af968f7ca706ce780fbe967fcd0e1724 | |
parent | a277446bfd4a3a351e32b7704f5cb0dec109c17f (diff) | |
download | gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar.gz gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar.bz2 gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar.lz gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar.xz gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.tar.zst gsoc2013-empathy-a8f5972679288f101fc0ae993c34aa64ccc5acec.zip |
Disable the fullscreen action while we are not connected
-rw-r--r-- | src/empathy-call-window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index a8e66d9e7..c2dbebba9 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -1094,6 +1094,8 @@ empathy_call_window_init (EmpathyCallWindow *self) "action_camera_off", "changed", action_camera_change_cb, NULL); + gtk_action_set_sensitive (priv->menu_fullscreen, FALSE); + priv->lock = g_mutex_new (); gtk_container_add (GTK_CONTAINER (self), top_vbox); @@ -1915,6 +1917,8 @@ empathy_call_window_disconnected (EmpathyCallWindow *self, /* Leave full screen mode if needed */ gtk_window_unfullscreen (GTK_WINDOW (self)); + gtk_action_set_sensitive (priv->menu_fullscreen, FALSE); + could_reset_pipeline = empathy_call_window_reset_pipeline (self); if (priv->call_state == CONNECTING) @@ -2504,6 +2508,8 @@ empathy_call_window_connected (gpointer user_data) empathy_call_window_update_timer (self); + gtk_action_set_sensitive (priv->menu_fullscreen, TRUE); + return FALSE; } |