diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-08-03 11:56:25 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-08-03 11:56:25 +0000 |
commit | f7b3a214f3ca08da2b1d7d62024f31e21f1f87db (patch) | |
tree | 62a9d52cffc3045d22b91598b695f7e207612ac2 /gtk | |
parent | c1053096bdcfa12af955b07bf6dee474c6c12a79 (diff) | |
parent | 111929593aa995c3286b84ad118280357cfe6bdd (diff) | |
download | gtk+-f7b3a214f3ca08da2b1d7d62024f31e21f1f87db.tar.gz |
Merge branch 'mount_operation' into 'main'
mountoperation: Fix authentication dialog
Closes #5059 and #5058
See merge request GNOME/gtk!4899
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmountoperation.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c index 2d14523e63..90383811a1 100644 --- a/gtk/gtkmountoperation.c +++ b/gtk/gtkmountoperation.c @@ -400,6 +400,10 @@ pw_dialog_got_response (GtkDialog *dialog, else g_mount_operation_reply (op, G_MOUNT_OPERATION_ABORTED); + if (priv->user_widgets) + g_list_free (priv->user_widgets); + + priv->user_widgets = NULL; priv->dialog = NULL; g_object_notify (G_OBJECT (op), "is-showing"); gtk_window_destroy (GTK_WINDOW (dialog)); @@ -678,6 +682,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation, gtk_grid_attach (GTK_GRID (grid), anon_box, 1, rows++, 1, 1); choice = gtk_check_button_new_with_mnemonic (_("_Anonymous")); + gtk_check_button_set_active (GTK_CHECK_BUTTON (choice), TRUE); gtk_box_append (GTK_BOX (anon_box), choice); g_signal_connect (choice, "toggled", G_CALLBACK (pw_dialog_anonymous_toggled), operation); |