G_CALLBACK (midori_preferences_notify_identify_as_cb), entry);
midori_preferences_notify_identify_as_cb (settings, NULL, 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_NEW (GTK_STOCK_INDEX, _("Privacy"));
SPANNED_ADD (button);
label = gtk_label_new (_("days"));
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);
INDENTED_ADD (button);
}
gboolean remember_last_visited_pages;
gint maximum_history_age;
- gboolean remember_last_form_inputs;
gboolean remember_last_downloaded_files;
gchar* http_proxy;
gboolean auto_detect_proxy;
MidoriIdentity identify_as;
gchar* ident_string;
- gint cache_size;
gint clear_private_data;
};
PROP_REMEMBER_LAST_VISITED_PAGES,
PROP_MAXIMUM_HISTORY_AGE,
- PROP_REMEMBER_LAST_FORM_INPUTS,
PROP_REMEMBER_LAST_DOWNLOADED_FILES,
PROP_HTTP_PROXY,
PROP_AUTO_DETECT_PROXY,
PROP_IDENTIFY_AS,
PROP_IDENT_STRING,
- PROP_CACHE_SIZE,
PROP_CLEAR_PRIVATE_DATA
};
0, G_MAXINT, 30,
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,
PROP_REMEMBER_LAST_DOWNLOADED_FILES,
g_param_spec_boolean (
NULL,
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:
*
web_settings->http_proxy = NULL;
web_settings->show_panel_controls = TRUE;
web_settings->open_popups_in_tabs = TRUE;
- web_settings->remember_last_form_inputs = TRUE;
web_settings->remember_last_downloaded_files = TRUE;
web_settings->kinetic_scrolling = TRUE;
web_settings->auto_detect_proxy = TRUE;
case PROP_MAXIMUM_HISTORY_AGE:
web_settings->maximum_history_age = g_value_get_int (value);
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:
web_settings->remember_last_downloaded_files = g_value_get_boolean (value);
break;
#endif
}
break;
- case PROP_CACHE_SIZE:
- web_settings->cache_size = g_value_get_int (value);
- break;
case PROP_CLEAR_PRIVATE_DATA:
web_settings->clear_private_data = g_value_get_int (value);
break;
case PROP_MAXIMUM_HISTORY_AGE:
g_value_set_int (value, web_settings->maximum_history_age);
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:
g_value_set_boolean (value, web_settings->remember_last_downloaded_files);
break;
}
g_value_set_string (value, web_settings->ident_string);
break;
- case PROP_CACHE_SIZE:
- g_value_set_int (value, web_settings->cache_size);
- break;
case PROP_CLEAR_PRIVATE_DATA:
g_value_set_int (value, web_settings->clear_private_data);
break;