[sysprof] window: disable record button while generating profile
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] window: disable record button while generating profile
- Date: Thu, 17 Nov 2016 04:14:53 +0000 (UTC)
commit 9d8085a73b7850f654058fc743ddc1d5b12b7de0
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 16 20:14:44 2016 -0800
window: disable record button while generating profile
src/sp-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/sp-window.c b/src/sp-window.c
index 597eaaf..9e1569f 100644
--- a/src/sp-window.c
+++ b/src/sp-window.c
@@ -212,6 +212,8 @@ sp_window_build_profile_cb (GObject *object,
g_assert (SP_IS_WINDOW (self));
g_assert (G_IS_ASYNC_RESULT (result));
+ gtk_widget_set_sensitive (GTK_WIDGET (self->record_button), TRUE);
+
if (!sp_profile_generate_finish (profile, result, &error))
{
/* If we were cancelled while updating the selection, ignore the failure */
@@ -257,6 +259,8 @@ sp_window_build_profile (SpWindow *self)
self->refilter_cancellable = g_cancellable_new ();
+ gtk_widget_set_sensitive (GTK_WIDGET (self->record_button), FALSE);
+
sp_profile_generate (profile,
self->refilter_cancellable,
sp_window_build_profile_cb,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]