summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2022-12-02 14:22:50 +0000
committerWill Thompson <wjt@endlessos.org>2022-12-02 15:06:32 +0000
commite2ed278ed31199fa6d3838415daac6817c481bf9 (patch)
tree6b4439c70332aed73cec733619934bb18b184774
parent09740f5d5f8fdae5da3289e43bb218ff804f5dc1 (diff)
downloadgnome-initial-setup-e2ed278ed31199fa6d3838415daac6817c481bf9.tar.gz
account: Allow closing enterprise error dialog with buttons
Previously, hitting Escape would close the dialog, but clicking the close button did nothing. Handle the response signal, as documented right there in the overview of GtkMessageDialog. Fixes https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/161 Part-of: <https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/169> (cherry picked from commit 284af33fcd47e461173731618d3bdf8fc76d2ab4)
-rw-r--r--gnome-initial-setup/pages/account/gis-account-page-enterprise.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
index 39976da..02a4f3b 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
@@ -138,6 +138,9 @@ show_error_dialog (GisAccountPageEnterprise *page,
"%s", error->message);
}
+ g_signal_connect (dialog, "response",
+ G_CALLBACK (gtk_window_destroy),
+ NULL);
gtk_window_present (GTK_WINDOW (dialog));
}