]> spindle.queued.net Git - midori/commitdiff
Check 'Remember password' depending on whether it was checked before
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 24 Jan 2010 22:37:59 +0000 (23:37 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 24 Jan 2010 22:37:59 +0000 (23:37 +0100)
katze/katze-http-auth.c

index 38c6ce5c927e87f9cffbad485ce7288ddf2285a4..eef0c6a0511ff8971de66ca1c33d3bb6a6520076 100644 (file)
@@ -266,6 +266,7 @@ katze_http_auth_session_authenticate_cb (SoupSession*   session,
     label = gtk_check_button_new_with_mnemonic (_("_Remember password"));
     gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
     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_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
     gtk_widget_show_all (GTK_DIALOG (dialog)->vbox);