[gnome-software/41-update-details-dialog-stays-open-when-browsing-to-a-software-s-page-from-shell: 7/7] Update details dialog stays open when browsing to a software's page from shell




commit 3d2d51af61347928e8ab54b7fdbcb358119ed94b
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 9 09:12:32 2020 +0200

    Update details dialog stays open when browsing to a software's page from shell
    
    Use the modal dialog queue of the GsShell to have the window closed
    when the GsShell changes the page.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/41
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/507

 src/gs-shell.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 4765f782..a849770d 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -2364,8 +2364,7 @@ gs_shell_show_installed_updates (GsShell *shell)
        dialog = gs_update_dialog_new (priv->plugin_loader);
        gs_update_dialog_show_installed_updates (GS_UPDATE_DIALOG (dialog));
 
-       gtk_window_set_transient_for (GTK_WINDOW (dialog), priv->main_window);
-       gtk_window_present (GTK_WINDOW (dialog));
+       gs_shell_modal_dialog_present (shell, GTK_DIALOG (dialog));
 }
 
 void


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