mountoperation: Select "Anonymous" check button by default
authorCorey Berla <corey@berla.me>
Mon, 25 Jul 2022 03:53:41 +0000 (20:53 -0700)
committerCorey Berla <corey@berla.me>
Mon, 25 Jul 2022 03:53:41 +0000 (20:53 -0700)
It is already explicitly assumed that anonymous authentication will
be used when available, but it is not clear to the user since neither
of the check buttons are selected.  Select the Anonymous check button
by default.

gtk/gtkmountoperation.c

index 2d14523e6371cdec18d4eab1a025ed446be99b23..87f26478492517056468c323fcc3c93e2cdd8205 100644 (file)
@@ -678,6 +678,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);