[gnome-software/41-update-details-dialog-stays-open-when-browsing-to-a-software-s-page-from-shell] Update details dialog stays open when browsing to a software's page from shell
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/41-update-details-dialog-stays-open-when-browsing-to-a-software-s-page-from-shell] Update details dialog stays open when browsing to a software's page from shell
- Date: Wed, 9 Sep 2020 07:14:29 +0000 (UTC)
commit eff321a72908b2798f743ae5d7e2f3ecc0a7b487
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 8f0dc6f1..ced21607 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -2350,8 +2350,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]