From dfef97949907e5888c13f18b7a13d7d7cb690022 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 3 May 2009 10:14:55 +0200 Subject: [PATCH] Automatically reset the filter after deleting all matching cookies Also fix wording in the confirmation dialog. --- extensions/cookie-manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/cookie-manager.c b/extensions/cookie-manager.c index ccf08a24..85718d0a 100644 --- a/extensions/cookie-manager.c +++ b/extensions/cookie-manager.c @@ -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) -- 2.39.5