Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
prefs.c File Reference
#include "prefs.h"
Include dependency graph for prefs.c:

Go to the source code of this file.

Macros

#define PREFS_START_PAGE   "about:splash"
 
#define PREFS_HOME   "https://dillo-browser.github.io/"
 
#define PREFS_NEW_TAB_PAGE   "about:blank"
 
#define PREFS_FONT_SERIF   "DejaVu Serif"
 
#define PREFS_FONT_SANS_SERIF   "DejaVu Sans"
 
#define PREFS_FONT_CURSIVE   "DejaVu Sans"
 
#define PREFS_FONT_FANTASY   "DejaVu Sans" /* TODO: find good default */
 
#define PREFS_FONT_MONOSPACE   "DejaVu Sans Mono"
 
#define PREFS_SEARCH_URL   "dd http://duckduckgo.com/lite/?kp=-1&kd=-1&q=%s"
 
#define PREFS_NO_PROXY   "localhost 127.0.0.1"
 
#define PREFS_SAVE_DIR   "/tmp/"
 
#define PREFS_HTTP_REFERER   "host"
 
#define PREFS_HTTP_USER_AGENT   "Dillo/" VERSION
 
#define PREFS_THEME   "none"
 

Functions

void a_Prefs_init (void)
 Sets the default settings.
 
void a_Prefs_freeall (void)
 memory-deallocation.
 

Variables

DilloPrefs prefs
 Global Data.
 

Macro Definition Documentation

◆ PREFS_FONT_CURSIVE

#define PREFS_FONT_CURSIVE   "DejaVu Sans"

Definition at line 20 of file prefs.c.

◆ PREFS_FONT_FANTASY

#define PREFS_FONT_FANTASY   "DejaVu Sans" /* TODO: find good default */

Definition at line 21 of file prefs.c.

◆ PREFS_FONT_MONOSPACE

#define PREFS_FONT_MONOSPACE   "DejaVu Sans Mono"

Definition at line 22 of file prefs.c.

◆ PREFS_FONT_SANS_SERIF

#define PREFS_FONT_SANS_SERIF   "DejaVu Sans"

Definition at line 19 of file prefs.c.

◆ PREFS_FONT_SERIF

#define PREFS_FONT_SERIF   "DejaVu Serif"

Definition at line 18 of file prefs.c.

◆ PREFS_HOME

#define PREFS_HOME   "https://dillo-browser.github.io/"

Definition at line 16 of file prefs.c.

◆ PREFS_HTTP_REFERER

#define PREFS_HTTP_REFERER   "host"

Definition at line 26 of file prefs.c.

◆ PREFS_HTTP_USER_AGENT

#define PREFS_HTTP_USER_AGENT   "Dillo/" VERSION

Definition at line 27 of file prefs.c.

◆ PREFS_NEW_TAB_PAGE

#define PREFS_NEW_TAB_PAGE   "about:blank"

Definition at line 17 of file prefs.c.

◆ PREFS_NO_PROXY

#define PREFS_NO_PROXY   "localhost 127.0.0.1"

Definition at line 24 of file prefs.c.

◆ PREFS_SAVE_DIR

#define PREFS_SAVE_DIR   "/tmp/"

Definition at line 25 of file prefs.c.

◆ PREFS_SEARCH_URL

#define PREFS_SEARCH_URL   "dd http://duckduckgo.com/lite/?kp=-1&kd=-1&q=%s"

Definition at line 23 of file prefs.c.

◆ PREFS_START_PAGE

#define PREFS_START_PAGE   "about:splash"

Definition at line 15 of file prefs.c.

◆ PREFS_THEME

#define PREFS_THEME   "none"

Definition at line 28 of file prefs.c.

Function Documentation

◆ a_Prefs_freeall()

◆ a_Prefs_init()

void a_Prefs_init ( void  )

Sets the default settings.

Definition at line 39 of file prefs.c.

References a_Url_new(), DilloPrefs::adjust_min_width, DilloPrefs::adjust_table_min_width, DilloPrefs::allow_white_bg, DilloPrefs::bg_color, DilloPrefs::buffered_drawing, DilloPrefs::contrast_visited_color, dList_append(), dList_new(), dStrdup(), DilloPrefs::enterpress_forces_submit, FALSE, DilloPrefs::focus_new_tab, DilloPrefs::font_cursive, DilloPrefs::font_factor, DilloPrefs::font_fantasy, DilloPrefs::font_max_size, DilloPrefs::font_min_size, DilloPrefs::font_monospace, DilloPrefs::font_sans_serif, DilloPrefs::font_serif, DilloPrefs::fullwindow_start, DilloPrefs::height, DilloPrefs::home, DilloPrefs::http_force_https, DilloPrefs::http_language, DilloPrefs::http_max_conns, DilloPrefs::http_persistent_conns, DilloPrefs::http_proxy, DilloPrefs::http_proxyuser, DilloPrefs::http_referer, DilloPrefs::http_strict_transport_security, DilloPrefs::http_user_agent, DilloPrefs::limit_text_width, DilloPrefs::load_background_images, DilloPrefs::load_images, DilloPrefs::load_stylesheets, DilloPrefs::middle_click_drags_page, DilloPrefs::middle_click_opens_new_tab, DilloPrefs::new_tab_page, DilloPrefs::no_proxy, P_medium, DilloPrefs::panel_size, DilloPrefs::parse_embedded_css, DilloPrefs::penalty_em_dash_left, DilloPrefs::penalty_em_dash_right, DilloPrefs::penalty_em_dash_right_2, DilloPrefs::penalty_hyphen, DilloPrefs::penalty_hyphen_2, prefs, PREFS_FONT_CURSIVE, PREFS_FONT_FANTASY, PREFS_FONT_MONOSPACE, PREFS_FONT_SANS_SERIF, PREFS_FONT_SERIF, PREFS_GEOMETRY_DEFAULT_HEIGHT, PREFS_GEOMETRY_DEFAULT_WIDTH, PREFS_GEOMETRY_DEFAULT_XPOS, PREFS_GEOMETRY_DEFAULT_YPOS, PREFS_HOME, PREFS_HTTP_REFERER, PREFS_HTTP_USER_AGENT, PREFS_NEW_TAB_PAGE, PREFS_NO_PROXY, PREFS_SAVE_DIR, PREFS_SEARCH_URL, PREFS_START_PAGE, PREFS_THEME, DilloPrefs::right_click_closes_tab, DilloPrefs::save_dir, DilloPrefs::scroll_page_overlap, DilloPrefs::scroll_step, DilloPrefs::scroll_switches_tabs, DilloPrefs::scroll_switches_tabs_reverse, DilloPrefs::scrollbar_on_left, DilloPrefs::scrollbar_page_mode, DilloPrefs::search_url_idx, DilloPrefs::search_urls, DilloPrefs::show_back, DilloPrefs::show_bookmarks, DilloPrefs::show_clear_url, DilloPrefs::show_extra_warnings, DilloPrefs::show_filemenu, DilloPrefs::show_forw, DilloPrefs::show_help, DilloPrefs::show_home, DilloPrefs::show_msg, DilloPrefs::show_progress_box, DilloPrefs::show_quit_dialog, DilloPrefs::show_reload, DilloPrefs::show_save, DilloPrefs::show_search, DilloPrefs::show_stop, DilloPrefs::show_tools, DilloPrefs::show_tooltip, DilloPrefs::show_ui_tooltip, DilloPrefs::show_url, DilloPrefs::small_icons, DilloPrefs::start_page, DilloPrefs::stretchability_factor, DilloPrefs::theme, TRUE, DilloPrefs::ui_button_highlight_color, DilloPrefs::ui_fg_color, DilloPrefs::ui_main_bg_color, DilloPrefs::ui_selection_color, DilloPrefs::ui_tab_active_bg_color, DilloPrefs::ui_tab_active_fg_color, DilloPrefs::ui_tab_bg_color, DilloPrefs::ui_tab_fg_color, DilloPrefs::ui_tab_height, DilloPrefs::ui_text_bg_color, DilloPrefs::white_bg_replacement, DilloPrefs::width, DilloPrefs::xpos, DilloPrefs::ypos, and DilloPrefs::zoom_factor.

Referenced by main().

Variable Documentation

◆ prefs

DilloPrefs prefs

Global Data.

Definition at line 33 of file prefs.c.

Referenced by a_Dialog_choice(), a_Dialog_input(), a_Dialog_text_window(), a_Hsts_freeall(), a_Hsts_init(), a_Html_common_image_attrs(), a_Html_image_new(), a_Html_load_stylesheet(), a_Http_init(), a_Http_set_proxy_passwd(), a_Menu_tools_popup(), a_Nav_home(), a_Prefs_freeall(), a_Prefs_init(), a_Tls_mbedtls_freeall(), a_UIcmd_browser_window_new(), a_UIcmd_close_all_bw(), a_UIcmd_home(), a_UIcmd_init(), a_Url_new(), a_Web_dispatch_by_type(), StyleEngine::apply(), Cache_parse_header(), checkPreferredFonts(), DilloHtml::HtmlLinkReceiver::click(), UI::customize(), TipWin::do_show(), UI::handle(), Html_add_textblock(), Html_display_listitem(), Html_parse_common_attrs(), Html_parse_entity(), Html_parse_named_charref(), Html_parse_numeric_charref(), Html_process_space(), Html_tag_close_style(), Html_tag_content_table(), Html_tag_content_table_cell(), Html_tag_open_a(), Html_tag_open_abbr(), Html_tag_open_body(), Html_tag_open_button(), Html_tag_open_dir(), Html_tag_open_font(), Html_tag_open_input(), Html_tag_open_link(), Html_tag_open_sectioning(), Html_tag_open_select(), Html_tag_open_span(), Http_connect_queued_sockets(), Http_get_referer(), Http_make_query_str(), Http_must_use_proxy(), DilloHtml::initDw(), main(), UI::make_filemenu_button(), UI::make_location(), Menu_bgimg_load_toggle_cb(), Menu_embedded_css_cb(), Menu_force_https_cb(), Menu_history_cb(), Menu_imgload_toggle_cb(), Menu_open_url_nt_cb(), Menu_remote_css_cb(), Menu_stylesheet_cb(), parseOption(), setColors(), StyleEngine::setStyle(), StyleEngine::StyleEngine(), tab_btn_cb(), UI::UI(), UIcmd_find_search_str(), UIcmd_make_search_str(), UIcmd_open_url_nbw(), UIcmd_tab_new(), and win_cb().