]> spindle.queued.net Git - midori/commitdiff
Automatically reset the filter after deleting all matching cookies
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 3 May 2009 08:14:55 +0000 (10:14 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 3 May 2009 08:14:55 +0000 (10:14 +0200)
Also fix wording in the confirmation dialog.

extensions/cookie-manager.c

index ccf08a24a9b6b38be7395d47dea9f2860403d022..85718d0ae0004bdc4d7b75743d4532e233d9a353 100644 (file)
@@ -474,6 +474,8 @@ static void cm_delete_all_cookies_real(CMData *cmdata)
        }
        gtk_tree_path_free(path_first);
 
+       /* now that we deleted all matching cookies, we reset the filter */
+       gtk_entry_set_text(GTK_ENTRY(cmdata->filter_entry), "");
        cm_set_button_sensitiveness(cmdata, FALSE);
 }
 
@@ -499,7 +501,7 @@ static void cm_button_delete_all_clicked_cb(GtkToolButton *button, CMData *cmdat
        if (*filter_text != '\0')
        {
                gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
-                       _("Only the visible cookies are deleted which match the entered filter string."));
+                       _("Only cookies which match the filter will be deleted."));
        }
 
        if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_YES)