Check 'Remember password' depending on whether it was checked before

This commit is contained in:
Enrico Tröger 2010-01-24 23:37:59 +01:00 committed by Christian Dywan
parent a7b982eff0
commit 3ed2046d50

View file

@ -266,6 +266,7 @@ katze_http_auth_session_authenticate_cb (SoupSession* session,
label = gtk_check_button_new_with_mnemonic (_("_Remember password")); label = gtk_check_button_new_with_mnemonic (_("_Remember password"));
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
g_object_set_data (G_OBJECT (dialog), "remember", label); g_object_set_data (G_OBJECT (dialog), "remember", label);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (label), (login != NULL));
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), hbox); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), hbox);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_widget_show_all (GTK_DIALOG (dialog)->vbox); gtk_widget_show_all (GTK_DIALOG (dialog)->vbox);