[empathy] CallWindow: don't hide the toolbar when not in a call
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: don't hide the toolbar when not in a call
- Date: Fri, 19 Aug 2011 09:27:55 +0000 (UTC)
commit 2a15005b42394c72c7c883aa9beff4f8f87b8e26
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri Aug 19 09:55:04 2011 +0100
CallWindow: don't hide the toolbar when not in a call
https://bugzilla.gnome.org/show_bug.cgi?id=656566
src/empathy-call-window.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index df52534..bbaf96a 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1159,6 +1159,9 @@ empathy_call_window_set_state_connecting (EmpathyCallWindow *window)
empathy_call_window_status_message (window, _("Connectingâ"));
priv->call_state = CONNECTING;
+ /* Show the toolbar */
+ clutter_state_set_state (priv->transitions, "fade-in");
+
if (priv->outgoing)
empathy_sound_manager_start_playing (priv->sound_mgr, GTK_WIDGET (window),
EMPATHY_SOUND_PHONE_OUTGOING, MS_BETWEEN_RING);
@@ -1275,7 +1278,11 @@ empathy_call_window_toolbar_timeout (gpointer data)
{
EmpathyCallWindow *self = data;
- clutter_state_set_state (self->priv->transitions, "fade-out");
+ /* We don't want to hide the toolbar if we're not in a call, as
+ * to show the call status all the time. */
+ if (self->priv->call_state != CONNECTING &&
+ self->priv->call_state != DISCONNECTED)
+ clutter_state_set_state (self->priv->transitions, "fade-out");
return TRUE;
}
@@ -2305,6 +2312,9 @@ empathy_call_window_disconnected (EmpathyCallWindow *self,
if (priv->call_state != REDIALING)
priv->call_state = DISCONNECTED;
+ /* Show the toolbar */
+ clutter_state_set_state (priv->transitions, "fade-in");
+
if (could_reset_pipeline)
{
g_mutex_lock (priv->lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]