summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-07-21 22:22:54 +0200
committerSebastian Geerken <devnull@localhost>2014-07-21 22:22:54 +0200
commit0a6fc284229b0fa4bb567ad26d76bff01a62a01b (patch)
treeb3f848b4036cd48fd6dd91fd7887aa2b09432199 /src
parent26e47e9cef47b3e65087c88a303666e5a81b49b1 (diff)
New dillorc option adjust_table_min_width.
Diffstat (limited to 'src')
-rw-r--r--src/dillo.cc2
-rw-r--r--src/prefs.c1
-rw-r--r--src/prefs.h1
-rw-r--r--src/prefsparser.cc1
4 files changed, 5 insertions, 0 deletions
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 },