aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2020-05-15 15:22:02 -0700
committerLeandro Pereira <leandro@hardinfo.org>2020-05-15 15:22:02 -0700
commit1ee2dd032235519b140f439d3ba104cbdb525e2c (patch)
tree1167a68a99bcce782a4926b2f930c41d13e0512c /modules/benchmark.c
parent840c684b51eef235a55db8c4c133a3449508a312 (diff)
Disable SyncManager while showing benchmark dialog
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r--modules/benchmark.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index c19295b2..af06dd27 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -695,6 +695,8 @@ static void do_benchmark(void (*benchmark_function)(void), int entry)
"or press any keys."));
gtk_window_set_transient_for(GTK_WINDOW(bench_dialog),
GTK_WINDOW(shell_get_main_shell()->transient_dialog));
+ gtk_widget_set_sensitive(GTK_WIDGET(shell_get_main_shell()->transient_dialog),
+ FALSE);
gtk_dialog_add_buttons(GTK_DIALOG(bench_dialog), _("Cancel"),
GTK_RESPONSE_ACCEPT, NULL);
@@ -744,6 +746,8 @@ static void do_benchmark(void (*benchmark_function)(void), int entry)
g_io_channel_unref(channel);
shell_view_set_enabled(TRUE);
shell_status_set_enabled(TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(shell_get_main_shell()->transient_dialog),
+ TRUE);
g_free(benchmark_dialog);
shell_status_update(_("Done."));