summaryrefslogtreecommitdiff
path: root/src/nautilus-operations-ui-manager.h
diff options
context:
space:
mode:
authorÁlvaro Costa <alvaroc.dev@gmail.com>2021-11-26 18:33:06 -0300
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2021-12-08 18:23:59 +0000
commit3647c7473a0c5cb851e2cc500acfb6ffd11bdfc3 (patch)
treea484a4aaf769d2571fa82cb5ffe45b6263adbb3e /src/nautilus-operations-ui-manager.h
parente295cac225f167ce020f1b2e97519d76d085c5c2 (diff)
downloadnautilus-3647c7473a0c5cb851e2cc500acfb6ffd11bdfc3.tar.gz
file-operations: Delay dialog activation
Warning, error and question dialogs may pop up unexpectedly during lengthier operations and the user may end up selecting an unwanted action. This patch introduces a delay of 2s for dialog activation when the total elapsed time of the job that created the dialog is greater than 2s. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1988
Diffstat (limited to 'src/nautilus-operations-ui-manager.h')
-rw-r--r--src/nautilus-operations-ui-manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-operations-ui-manager.h b/src/nautilus-operations-ui-manager.h
index 06fa3ba3d..052a0da92 100644
--- a/src/nautilus-operations-ui-manager.h
+++ b/src/nautilus-operations-ui-manager.h
@@ -3,6 +3,8 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
+#define BUTTON_ACTIVATION_DELAY_IN_SECONDS 2
+
typedef struct {
int id;
char *new_name;