Remove cache and form history preferences

These features are implemented as extensions, so the preferences
don't belong in the core.
This commit is contained in:
Christian Dywan 2009-10-25 14:58:22 +01:00
parent 4c5807529b
commit 9f68b17036
2 changed files with 0 additions and 43 deletions

View file

@ -497,12 +497,6 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
G_CALLBACK (midori_preferences_notify_identify_as_cb), entry); G_CALLBACK (midori_preferences_notify_identify_as_cb), entry);
midori_preferences_notify_identify_as_cb (settings, NULL, entry); midori_preferences_notify_identify_as_cb (settings, NULL, entry);
SPANNED_ADD (entry); SPANNED_ADD (entry);
label = katze_property_label (settings, "cache-size");
INDENTED_ADD (label);
entry = katze_property_proxy (settings, "cache-size", NULL);
SPANNED_ADD (entry);
label = gtk_label_new (_("MB"));
SPANNED_ADD (label);
/* Page "Privacy" */ /* Page "Privacy" */
PAGE_NEW (GTK_STOCK_INDEX, _("Privacy")); PAGE_NEW (GTK_STOCK_INDEX, _("Privacy"));
@ -526,8 +520,6 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
SPANNED_ADD (button); SPANNED_ADD (button);
label = gtk_label_new (_("days")); label = gtk_label_new (_("days"));
SPANNED_ADD (label); SPANNED_ADD (label);
button = katze_property_proxy (settings, "remember-last-form-inputs", NULL);
INDENTED_ADD (button);
button = katze_property_proxy (settings, "remember-last-downloaded-files", NULL); button = katze_property_proxy (settings, "remember-last-downloaded-files", NULL);
INDENTED_ADD (button); INDENTED_ADD (button);
} }

View file

@ -82,14 +82,12 @@ struct _MidoriWebSettings
gboolean remember_last_visited_pages; gboolean remember_last_visited_pages;
gint maximum_history_age; gint maximum_history_age;
gboolean remember_last_form_inputs;
gboolean remember_last_downloaded_files; gboolean remember_last_downloaded_files;
gchar* http_proxy; gchar* http_proxy;
gboolean auto_detect_proxy; gboolean auto_detect_proxy;
MidoriIdentity identify_as; MidoriIdentity identify_as;
gchar* ident_string; gchar* ident_string;
gint cache_size;
gint clear_private_data; gint clear_private_data;
}; };
@ -159,14 +157,12 @@ enum
PROP_REMEMBER_LAST_VISITED_PAGES, PROP_REMEMBER_LAST_VISITED_PAGES,
PROP_MAXIMUM_HISTORY_AGE, PROP_MAXIMUM_HISTORY_AGE,
PROP_REMEMBER_LAST_FORM_INPUTS,
PROP_REMEMBER_LAST_DOWNLOADED_FILES, PROP_REMEMBER_LAST_DOWNLOADED_FILES,
PROP_HTTP_PROXY, PROP_HTTP_PROXY,
PROP_AUTO_DETECT_PROXY, PROP_AUTO_DETECT_PROXY,
PROP_IDENTIFY_AS, PROP_IDENTIFY_AS,
PROP_IDENT_STRING, PROP_IDENT_STRING,
PROP_CACHE_SIZE,
PROP_CLEAR_PRIVATE_DATA PROP_CLEAR_PRIVATE_DATA
}; };
@ -907,15 +903,6 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
0, G_MAXINT, 30, 0, G_MAXINT, 30,
flags)); flags));
g_object_class_install_property (gobject_class,
PROP_REMEMBER_LAST_FORM_INPUTS,
g_param_spec_boolean (
"remember-last-form-inputs",
_("Remember last form inputs"),
_("Whether the last form inputs are saved"),
TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_REMEMBER_LAST_DOWNLOADED_FILES, PROP_REMEMBER_LAST_DOWNLOADED_FILES,
g_param_spec_boolean ( g_param_spec_boolean (
@ -986,15 +973,6 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
PROP_CACHE_SIZE,
g_param_spec_int (
"cache-size",
_("Cache size"),
_("The allowed size of the cache"),
0, G_MAXINT, 100,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/** /**
* MidoriWebSettings:clear-private-data: * MidoriWebSettings:clear-private-data:
* *
@ -1049,7 +1027,6 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
web_settings->http_proxy = NULL; web_settings->http_proxy = NULL;
web_settings->show_panel_controls = TRUE; web_settings->show_panel_controls = TRUE;
web_settings->open_popups_in_tabs = TRUE; web_settings->open_popups_in_tabs = TRUE;
web_settings->remember_last_form_inputs = TRUE;
web_settings->remember_last_downloaded_files = TRUE; web_settings->remember_last_downloaded_files = TRUE;
web_settings->kinetic_scrolling = TRUE; web_settings->kinetic_scrolling = TRUE;
web_settings->auto_detect_proxy = TRUE; web_settings->auto_detect_proxy = TRUE;
@ -1349,9 +1326,6 @@ midori_web_settings_set_property (GObject* object,
case PROP_MAXIMUM_HISTORY_AGE: case PROP_MAXIMUM_HISTORY_AGE:
web_settings->maximum_history_age = g_value_get_int (value); web_settings->maximum_history_age = g_value_get_int (value);
break; break;
case PROP_REMEMBER_LAST_FORM_INPUTS:
web_settings->remember_last_form_inputs = g_value_get_boolean (value);
break;
case PROP_REMEMBER_LAST_DOWNLOADED_FILES: case PROP_REMEMBER_LAST_DOWNLOADED_FILES:
web_settings->remember_last_downloaded_files = g_value_get_boolean (value); web_settings->remember_last_downloaded_files = g_value_get_boolean (value);
break; break;
@ -1383,9 +1357,6 @@ midori_web_settings_set_property (GObject* object,
#endif #endif
} }
break; break;
case PROP_CACHE_SIZE:
web_settings->cache_size = g_value_get_int (value);
break;
case PROP_CLEAR_PRIVATE_DATA: case PROP_CLEAR_PRIVATE_DATA:
web_settings->clear_private_data = g_value_get_int (value); web_settings->clear_private_data = g_value_get_int (value);
break; break;
@ -1555,9 +1526,6 @@ midori_web_settings_get_property (GObject* object,
case PROP_MAXIMUM_HISTORY_AGE: case PROP_MAXIMUM_HISTORY_AGE:
g_value_set_int (value, web_settings->maximum_history_age); g_value_set_int (value, web_settings->maximum_history_age);
break; break;
case PROP_REMEMBER_LAST_FORM_INPUTS:
g_value_set_boolean (value, web_settings->remember_last_form_inputs);
break;
case PROP_REMEMBER_LAST_DOWNLOADED_FILES: case PROP_REMEMBER_LAST_DOWNLOADED_FILES:
g_value_set_boolean (value, web_settings->remember_last_downloaded_files); g_value_set_boolean (value, web_settings->remember_last_downloaded_files);
break; break;
@ -1579,9 +1547,6 @@ midori_web_settings_get_property (GObject* object,
} }
g_value_set_string (value, web_settings->ident_string); g_value_set_string (value, web_settings->ident_string);
break; break;
case PROP_CACHE_SIZE:
g_value_set_int (value, web_settings->cache_size);
break;
case PROP_CLEAR_PRIVATE_DATA: case PROP_CLEAR_PRIVATE_DATA:
g_value_set_int (value, web_settings->clear_private_data); g_value_set_int (value, web_settings->clear_private_data);
break; break;