Merge branch 'mount_operation' into 'main'

mountoperation: Fix authentication dialog

Closes #5059 and #5058

See merge request GNOME/gtk!4899
This commit is contained in:
Matthias Clasen
2022-08-03 11:56:25 +00:00

View File

@@ -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);