[sysprof/wip/chergert/sysprof-3] libsysprof-ui: hide logs view when no logs are present
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: hide logs view when no logs are present
- Date: Mon, 27 May 2019 06:45:51 +0000 (UTC)
commit 17581de2f3aaf341b0373abcda7fab3e2eceea5b
Author: Christian Hergert <chergert redhat com>
Date: Sun May 26 23:45:43 2019 -0700
libsysprof-ui: hide logs view when no logs are present
src/libsysprof-ui/sysprof-capture-view.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c
index 76a755b..c43713e 100644
--- a/src/libsysprof-ui/sysprof-capture-view.c
+++ b/src/libsysprof-ui/sysprof-capture-view.c
@@ -486,6 +486,9 @@ sysprof_capture_view_scan_finish (SysprofCaptureView *self,
if (!priv->features.has_samples)
gtk_widget_hide (GTK_WIDGET (priv->callgraph_view));
+ if (!priv->features.has_logs)
+ gtk_widget_hide (GTK_WIDGET (priv->logs_view));
+
if (!priv->features.has_marks && !priv->features.has_forks)
gtk_widget_hide (GTK_WIDGET (priv->marks_view));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]