aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-03-23 03:25:31 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-03-23 03:25:31 +0800
commit96c4386c12936e18242a878b4ed3ecc36e10a3d7 (patch)
treeb13b66bb550ce44321833bd7e7c36e56c7214ce4
parentdd50ff8ac2a37349e9d6a8c9fe8c4d0e34b00e6d (diff)
downloadgsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar.gz
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar.bz2
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar.lz
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar.xz
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.tar.zst
gsoc2013-empathy-96c4386c12936e18242a878b4ed3ecc36e10a3d7.zip
More coding style
svn path=/trunk/; revision=821
-rw-r--r--src/empathy-call-window.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 7552cfe45..cf9bfc859 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -235,26 +235,22 @@ call_window_status_changed_cb (EmpathyTpCall *call,
gboolean is_incoming;
gchar *title;
- g_object_get (G_OBJECT (window->call), "status", &status, NULL);
- g_object_get (G_OBJECT (window->call), "audio-stream", &audio_stream, NULL);
- g_object_get (G_OBJECT (window->call), "video-stream", &video_stream, NULL);
+ g_object_get (window->call,
+ "status", &status,
+ "audio-stream", &audio_stream,
+ "video-stream", &video_stream,
+ NULL);
if (video_stream->state > audio_stream->state)
- {
stream_state = video_stream->state;
- }
else
- {
stream_state = audio_stream->state;
- }
empathy_debug (DEBUG_DOMAIN, "Status changed - status: %d, stream state: %d",
status, stream_state);
if (window->timeout_event_id)
- {
call_window_stop_timeout (window);
- }
if (status == EMPATHY_TP_CALL_STATUS_CLOSED)
{
@@ -265,9 +261,7 @@ call_window_status_changed_cb (EmpathyTpCall *call,
call_window_set_output_video_is_drawing (window, FALSE);
}
else if (stream_state == TP_MEDIA_STREAM_STATE_DISCONNECTED)
- {
gtk_label_set_text (GTK_LABEL (window->status_label), "Disconnected");
- }
else if (status == EMPATHY_TP_CALL_STATUS_PENDING)
{
g_object_get (G_OBJECT (window->call), "contact", &contact, NULL);
@@ -282,28 +276,20 @@ call_window_status_changed_cb (EmpathyTpCall *call,
g_object_get (G_OBJECT (window->call), "is-incoming", &is_incoming, NULL);
if (is_incoming)
- {
gtk_widget_set_sensitive (window->start_call_button, TRUE);
- }
else
- {
g_signal_connect (GTK_OBJECT (window->video_button), "toggled",
G_CALLBACK (call_window_video_button_toggled_cb),
window);
- }
}
else if (status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
{
if (stream_state == TP_MEDIA_STREAM_STATE_CONNECTING)
- {
gtk_label_set_text (GTK_LABEL (window->status_label), "Connecting");
- }
else if (stream_state == TP_MEDIA_STREAM_STATE_CONNECTED)
{
if ((window->start_time).tv_sec == 0)
- {
g_get_current_time (&(window->start_time));
- }
window->timeout_event_id = g_timeout_add (1000,
call_window_update_timer, window);
empathy_debug (DEBUG_DOMAIN, "Timer started");