diff options
author | Josh Rickmar <jrick@devio.us> | 2012-05-07 11:24:52 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-05-07 11:24:52 -0400 |
commit | f82cf1f13aa3d94e1df6054c405f0c92e40e677b (patch) | |
tree | 4c9acb1d42f1a5b12a8ec130aff2c23fb3a94483 | |
parent | 2c0869fdf6a4298679e0eb512064d33dddd03b03 (diff) | |
download | xombrero-f82cf1f13aa3d94e1df6054c405f0c92e40e677b.tar.gz |
Revert "Reorganize global default settings so the comments make sense. No"
This reverts commit 8cf3ed194beb51595cc575c2fd7f8067d35c5dc7. Conflicts: settings.c
-rw-r--r-- | settings.c | 121 |
1 files changed, 59 insertions, 62 deletions
diff --git a/settings.c b/settings.c index 00171b5..7817bd7 100644 --- a/settings.c +++ b/settings.c @@ -28,86 +28,83 @@ PangoFontDescription *oops_font; PangoFontDescription *statusbar_font; PangoFontDescription *tabbar_font; -/* non settings. what are these for? */ -int dns_prefetch = FALSE; - /* settings that require restart */ -int allow_volatile_cookies = 0; -int autofocus_onload = 0; +int tabless = 0; /* allow only 1 tab */ +int enable_socket = 0; +int single_instance = 0; /* only allow one xxxterm to run */ +int fancy_bar = 1; /* fancy toolbar */ int browser_mode = XT_BM_NORMAL; -char *cmd_font_name = NULL; /* 'cmd_font' setting */ -int color_visited_uris = 1; -int cookie_policy = SOUP_COOKIE_JAR_ACCEPT_ALWAYS; -int cookies_enabled = 1; /* enable cookies */ +int gui_mode = XT_GM_CLASSIC; +int enable_localstorage = 1; +char *statusbar_elems = NULL; + +/* runtime settings */ +int show_tabs = 1; /* show tabs on notebook */ +int tab_style = XT_TABS_NORMAL; /* tab bar style */ +int show_url = 1; /* show url toolbar on notebook */ +int show_statusbar = 0; /* vimperator style status bar */ int ctrl_click_focus = 0; /* ctrl click gets focus */ -char default_script[PATH_MAX]; +int cookies_enabled = 1; /* enable cookies */ +int read_only_cookies = 0; /* enable to not write cookies */ +int enable_scripts = 1; +int enable_plugins = 1; gfloat default_zoom_level = 1.0; -char download_dir[PATH_MAX]; -int edit_mode = XT_EM_HYBRID; +char default_script[PATH_MAX]; +int window_height = 768; +int window_width = 1024; +int window_maximize = 0; +int icon_size = 2; /* 1 = smallest, 2+ = bigger */ +int refresh_interval = 10; /* download refresh interval */ +int enable_plugin_whitelist = 0; int enable_cookie_whitelist = 0; int enable_js_whitelist = 0; -int enable_localstorage = 1; -int enable_plugin_whitelist = 0; -int enable_plugins = 1; -int enable_scripts = 1; -int enable_socket = 0; -gint enable_spell_checking = 0; +int session_timeout = 3600; /* cookie session timeout */ +int cookie_policy = SOUP_COOKIE_JAR_ACCEPT_ALWAYS; +char *ssl_ca_file = NULL; +char *resource_dir = NULL; +gboolean ssl_strict_certs = FALSE; gboolean enable_strict_transport = TRUE; -char *encoding = NULL; -int fancy_bar = 1; /* fancy toolbar */ -int guess_search = 0; -int gui_mode = XT_GM_CLASSIC; -int history_autosave = 0; +int append_next = 1; /* append tab after current tab */ char *home = NULL; -int icon_size = 2; /* 1 = smallest, 2+ = bigger */ -int js_autorun_enabled = 1; -gint max_connections = 25; -gint max_host_connections = 5; -char *oops_font_name = NULL; /* 'oops_font' setting */ -int read_only_cookies = 0; /* enable to not write cookies */ -int refresh_interval = 10; /* download refresh interval */ -char *resource_dir = NULL; +char *search_string = NULL; +char *http_proxy = NULL; +char download_dir[PATH_MAX]; +int download_mode = XT_DM_START; +char runtime_settings[PATH_MAX]; /* override of settings */ +int allow_volatile_cookies = 0; +int color_visited_uris = 1; int save_global_history = 0; /* save global history to disk */ +struct user_agent *user_agent = NULL; int save_rejected_cookies = 0; -char *search_string = NULL; int session_autosave = 0; -int session_timeout = 3600; /* cookie session timeout */ -int single_instance = 0; /* only allow one xxxterm to run */ -int show_statusbar = 0; /* vimperator style status bar */ -int show_tabs = 1; /* show tabs on notebook */ -int show_url = 1; /* show url toolbar on notebook -- XXX duplicate of fancy_bar? */ +int guess_search = 0; +int dns_prefetch = FALSE; +gint max_connections = 25; +gint max_host_connections = 5; +gint enable_spell_checking = 0; char *spell_check_languages = NULL; -char *ssl_ca_file = NULL; -gboolean ssl_strict_certs = FALSE; -char *statusbar_elems = NULL; -char *statusbar_font_name = NULL; /* 'statusbar_font' setting */ -int tab_style = XT_TABS_NORMAL; /* tab bar style */ -char *tabbar_font_name = NULL; /* 'tabbar_font' setting */ -int tabless = 0; /* allow only 1 tab */ -struct user_agent *user_agent = NULL; +int xterm_workaround = 0; char *url_regex = NULL; +int history_autosave = 0; +char search_file[PATH_MAX]; +char command_file[PATH_MAX]; +char *encoding = NULL; +int autofocus_onload = 0; +int js_autorun_enabled = 1; +int edit_mode = XT_EM_HYBRID; int userstyle_global = 0; -int window_height = 768; -int window_maximize = 0; -int window_width = 1024; -int xterm_workaround = 0; - -/* runtime settings */ -int append_next = 1; /* append tab after current tab */ int auto_load_images = 1; -int download_mode = XT_DM_START; -int enable_autoscroll = 0; /* XXX: changing this at runtime doesn't change anything */ -int enable_favicon_entry = 1; /* XXX: only works on new tabs */ +int enable_autoscroll = 0; +int enable_favicon_entry = 1; int enable_favicon_tabs = 0; char *external_editor = NULL; -char *http_proxy = NULL; -int referer_mode = XT_REFERER_ALWAYS; /* 'referer' setting */ -char *referer_custom = NULL; /* 'referer' setting */ -char runtime_settings[PATH_MAX]; /* override of settings */ +int referer_mode = XT_REFERER_ALWAYS; +char *referer_custom = NULL; -/* unknown */ -char search_file[PATH_MAX]; -char command_file[PATH_MAX]; +char *cmd_font_name = NULL; +char *oops_font_name = NULL; +char *statusbar_font_name = NULL; +char *tabbar_font_name = NULL; char *get_download_dir(struct settings *); char *get_default_script(struct settings *); |