From 0a6fc284229b0fa4bb567ad26d76bff01a62a01b Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Mon, 21 Jul 2014 22:22:54 +0200 Subject: New dillorc option adjust_table_min_width. --- src/dillo.cc | 2 ++ src/prefs.c | 1 + src/prefs.h | 1 + src/prefsparser.cc | 1 + 4 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/dillo.cc b/src/dillo.cc index d67ba3af..90eecdd7 100644 --- a/src/dillo.cc +++ b/src/dillo.cc @@ -58,6 +58,7 @@ #include "dw/fltkcore.hh" #include "dw/widget.hh" #include "dw/textblock.hh" +#include "dw/table.hh" /* * Command line options structure @@ -485,6 +486,7 @@ int main(int argc, char **argv) StyleEngine::init(); dw::core::Widget::setAdjustMinWidth (prefs.adjust_min_width); + dw::Table::setAdjustTableMinWidth (prefs.adjust_table_min_width); dw::Textblock::setPenaltyHyphen (prefs.penalty_hyphen); dw::Textblock::setPenaltyHyphen2 (prefs.penalty_hyphen_2); dw::Textblock::setPenaltyEmDashLeft (prefs.penalty_em_dash_left); diff --git a/src/prefs.c b/src/prefs.c index b0213fcc..67cbaa79 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -69,6 +69,7 @@ void a_Prefs_init(void) prefs.http_user_agent = dStrdup(PREFS_HTTP_USER_AGENT); prefs.limit_text_width = FALSE; prefs.adjust_min_width = FALSE; + prefs.adjust_table_min_width = TRUE; prefs.load_images=TRUE; prefs.load_background_images=FALSE; prefs.load_stylesheets=TRUE; diff --git a/src/prefs.h b/src/prefs.h index b742e6e7..ac52786e 100644 --- a/src/prefs.h +++ b/src/prefs.h @@ -67,6 +67,7 @@ typedef struct { bool_t small_icons; bool_t limit_text_width; bool_t adjust_min_width; + bool_t adjust_table_min_width; bool_t w3c_plus_heuristics; bool_t focus_new_tab; double font_factor; diff --git a/src/prefsparser.cc b/src/prefsparser.cc index 33f6cf51..d54d017b 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -80,6 +80,7 @@ int PrefsParser::parseOption(char *name, char *value) { "http_user_agent", &prefs.http_user_agent, PREFS_STRING }, { "limit_text_width", &prefs.limit_text_width, PREFS_BOOL }, { "adjust_min_width", &prefs.adjust_min_width, PREFS_BOOL }, + { "adjust_table_min_width", &prefs.adjust_table_min_width, PREFS_BOOL }, { "load_images", &prefs.load_images, PREFS_BOOL }, { "load_background_images", &prefs.load_background_images, PREFS_BOOL }, { "load_stylesheets", &prefs.load_stylesheets, PREFS_BOOL }, -- cgit v1.2.3