[sysprof] window: call stop() if we are currently recording
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] window: call stop() if we are currently recording
- Date: Thu, 14 Apr 2016 12:49:21 +0000 (UTC)
commit cfd49d2c058d828618e07d6b7981468109889ef6
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 14 05:40:02 2016 -0700
window: call stop() if we are currently recording
src/sp-window.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/sp-window.c b/src/sp-window.c
index 59cf431..f9a4cfd 100644
--- a/src/sp-window.c
+++ b/src/sp-window.c
@@ -603,7 +603,10 @@ sp_window_record_button_clicked (SpWindow *self,
g_assert (SP_IS_WINDOW (self));
g_assert (GTK_IS_BUTTON (button));
- sp_window_start_recording (self);
+ if (self->state == SP_WINDOW_STATE_RECORDING)
+ sp_window_stop_recording (self);
+ else
+ sp_window_start_recording (self);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]