summaryrefslogtreecommitdiff
path: root/src/fr-window.c
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-03-24 10:44:43 +0800
committerLuke from DC <[email protected]>2023-04-05 03:17:49 +0000
commite424eb21db35129aee934aa528bddff0869b7a38 (patch)
treec345963472eea6060e50705556f04a25778b6974 /src/fr-window.c
parent4ee39ab04260179144ebb9ac7160df79a5b1e6fc (diff)
downloadengrampa-e424eb21db35129aee934aa528bddff0869b7a38.tar.bz2
engrampa-e424eb21db35129aee934aa528bddff0869b7a38.tar.xz
Extract: add the function of automatically closing the dialog box after decompression
Diffstat (limited to 'src/fr-window.c')
-rw-r--r--src/fr-window.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 7a18acf..88d8d9a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -382,6 +382,8 @@ struct _FrWindowPrivateData {
GtkWindow *load_error_parent_window;
gboolean showing_error_dialog;
GtkWindow *error_dialog_parent;
+
+ gboolean close_dialog;
};
/* -- fr_window_free_private_data -- */
@@ -2685,6 +2687,10 @@ open_progress_dialog_with_open_destination (FrWindow *window)
display_progress_dialog (window);
fr_window_progress_cb (NULL, 1.0, window);
fr_window_message_cb (NULL, _("Extraction completed successfully"), window);
+
+ if (window->priv->close_dialog)
+ close_progress_dialog (window, TRUE);
+
}
static void
@@ -8891,3 +8897,12 @@ fr_window_set_batch__add (FrWindow *window,
NULL,
NULL);
}
+
+void
+fr_window_set_close_dialog (FrWindow *window,
+ gboolean state)
+{
+ g_return_if_fail (window != NULL);
+
+ window->priv->close_dialog = state;
+}