[gnome-software/wip/mcrha/tweaks-gtk4] gs-common: Destroy message dialog on response



commit e9341c1b9cd7e1f406f928b57941f79b9934c25b
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 7 11:55:00 2021 +0200

    gs-common: Destroy message dialog on response
    
    Otherwise the dialog is left shown in the GUI, even when the user already
    responded to it.

 src/gs-common.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 9d3729044..0f1046cc8 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -211,6 +211,7 @@ response_cb (GtkDialog *dialog,
              RunInfo   *run_info)
 {
        run_info->response_id = response_id;
+       gtk_window_destroy (GTK_WINDOW (dialog));
        shutdown_loop (run_info);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]