[sysprof] app: present window before opening captures
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] app: present window before opening captures
- Date: Wed, 1 Jul 2020 20:21:35 +0000 (UTC)
commit 71fa41248e16207cf995354decc9c870184a95ba
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 1 13:20:48 2020 -0700
app: present window before opening captures
This is necessary to ensure that message dialogs that are shown when a
capture fails to open can be displayed above the window.
src/sysprof/sysprof-application.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/sysprof/sysprof-application.c b/src/sysprof/sysprof-application.c
index 421961a..b19ed87 100644
--- a/src/sysprof/sysprof-application.c
+++ b/src/sysprof/sysprof-application.c
@@ -94,11 +94,14 @@ sysprof_application_open (GApplication *app,
window = sysprof_window_new (SYSPROF_APPLICATION (app));
+ /* Present window before opening files so that message dialogs
+ * always display above the window.
+ */
+ gtk_window_present (GTK_WINDOW (window));
+
for (gint i = 0; i < n_files; i++)
sysprof_window_open (SYSPROF_WINDOW (window), files[i]);
- gtk_window_present (GTK_WINDOW (window));
-
if (n_files == 0)
sysprof_application_activate (app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]