[sysprof] libsysprof-ui: fix can-replay notification
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: fix can-replay notification
- Date: Wed, 18 May 2022 22:54:01 +0000 (UTC)
commit 808b95768218e2a3a37d8dd351ea6a68926c11d8
Author: Christian Hergert <chergert redhat com>
Date: Wed May 18 15:53:57 2022 -0700
libsysprof-ui: fix can-replay notification
Otherwise we don't get this until we switch tabs.
src/libsysprof-ui/sysprof-display.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index c0876fba..7f597dda 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -124,6 +124,7 @@ sysprof_display_profiler_failed_cb (SysprofDisplay *self,
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RECORDING]);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_REPLAY]);
}
static void
@@ -869,6 +870,8 @@ sysprof_display_scan_finish (SysprofDisplay *self,
(const SysprofMarkStat *)(gpointer)marks->data,
marks->len);
+ g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_REPLAY]);
+
return g_task_propagate_boolean (G_TASK (result), error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]