midori_remove_config_file (clear_prefs, MIDORI_CLEAR_SESSION, "session.xbel");
midori_remove_config_file (clear_prefs, MIDORI_CLEAR_HISTORY, "history.db");
- midori_remove_config_file (clear_prefs, MIDORI_CLEAR_TRASH, "tabtrash.xbel");
+ midori_remove_config_file (clear_prefs, MIDORI_CLEAR_HISTORY, "tabtrash.xbel");
for (; data_items != NULL; data_items = g_list_next (data_items))
{
if (gtk_toggle_button_get_active (button))
{
katze_array_clear (browser->history);
- clear_prefs |= MIDORI_CLEAR_HISTORY;
- }
- button = g_object_get_data (G_OBJECT (dialog), "trash");
- if (gtk_toggle_button_get_active (button) && browser->trash)
- {
katze_array_clear (browser->trash);
_midori_browser_update_actions (browser);
- clear_prefs |= MIDORI_CLEAR_TRASH;
+ clear_prefs |= MIDORI_CLEAR_HISTORY;
+ clear_prefs |= MIDORI_CLEAR_TRASH; /* For backward-compatibility */
}
if (clear_prefs != saved_prefs)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
g_object_set_data (G_OBJECT (dialog), "session", button);
gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
- /* i18n: Browsing history, visited web pages */
+ /* i18n: Browsing history, visited web pages, closed tabs */
button = gtk_check_button_new_with_mnemonic (_("_History"));
if ((clear_prefs & MIDORI_CLEAR_HISTORY) == MIDORI_CLEAR_HISTORY)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
g_object_set_data (G_OBJECT (dialog), "history", button);
gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
- button = gtk_check_button_new_with_mnemonic (_("_Closed Tabs"));
- if ((clear_prefs & MIDORI_CLEAR_TRASH) == MIDORI_CLEAR_TRASH)
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
- g_object_set_data (G_OBJECT (dialog), "trash", button);
- gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
data_items = sokoke_register_privacy_item (NULL, NULL, NULL);
for (; data_items != NULL; data_items = g_list_next (data_items))
MIDORI_CLEAR_COOKIES = 2, /* deprecated */
MIDORI_CLEAR_FLASH_COOKIES = 4, /* deprecated */
MIDORI_CLEAR_WEBSITE_ICONS = 8, /* deprecated */
- MIDORI_CLEAR_TRASH = 16,
+ MIDORI_CLEAR_TRASH = 16, /* deprecated */
MIDORI_CLEAR_ON_QUIT = 32,
MIDORI_CLEAR_WEB_CACHE = 64, /* deprecated */
MIDORI_CLEAR_SESSION = 128,