aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-25 00:28:49 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-28 00:33:43 +0800
commitfe97bdb9c202f40f57b1438df9d0045fad8f40c8 (patch)
treee5bd313cb3ae33fe12b3d66f00fdec715fed12ad /src/empathy-call-window.c
parentc2b043aa2094b697ce903186ea06038f24e1ef4b (diff)
downloadgsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar.gz
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar.bz2
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar.lz
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar.xz
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.tar.zst
gsoc2013-empathy-fe97bdb9c202f40f57b1438df9d0045fad8f40c8.zip
early return if the camera_state is already the one we want
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 8d4849d8b..eda10f131 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -770,6 +770,9 @@ tool_button_camera_off_toggled_cb (GtkToggleToolButton *toggle,
return;
}
+ if (priv->camera_state == CAMERA_STATE_OFF)
+ return;
+
DEBUG ("disable camera");
disable_camera (self);
}
@@ -809,6 +812,9 @@ tool_button_camera_preview_toggled_cb (GtkToggleToolButton *toggle,
return;
}
+ if (priv->camera_state == CAMERA_STATE_PREVIEW)
+ return;
+
DEBUG ("enable preview");
enable_preview (self);
}
@@ -848,6 +854,9 @@ tool_button_camera_on_toggled_cb (GtkToggleToolButton *toggle,
return;
}
+ if (priv->camera_state == CAMERA_STATE_ON)
+ return;
+
DEBUG ("enable camera");
enable_camera (self);
}