diff options
author | jcid <devnull@localhost> | 2008-01-02 16:19:06 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-01-02 16:19:06 +0100 |
commit | 4ad35872f842b54c955abeda970bd11c5f7bbd11 (patch) | |
tree | 20297eaff5d6a0b9486a52e8d34cfbdd20e3e36e /src | |
parent | b18814008a610f87de33c4f4394f4c4cb5f566a2 (diff) |
Enabled limit_text_width in preferences.
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 14 | ||||
-rw-r--r-- | src/plain.cc | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/html.cc b/src/html.cc index 53da3b10..520f0b44 100644 --- a/src/html.cc +++ b/src/html.cc @@ -699,7 +699,7 @@ static void Html_add_indented_widget(DilloHtml *html, Widget *textblock, */ static void Html_add_indented(DilloHtml *html, int left, int right, int space) { - Textblock *textblock = new Textblock (false); + Textblock *textblock = new Textblock (prefs.limit_text_width); Html_add_indented_widget (html, textblock, left, right, space); } @@ -825,7 +825,7 @@ void DilloHtml::initDw() dReturn_if_fail (dw == NULL); /* Create the main widget */ - dw = stack->getRef(0)->textblock = new Textblock (false); + dw = stack->getRef(0)->textblock = new Textblock (prefs.limit_text_width); /* Create a dummy font, attribute, and tag for the bottom of the stack. */ font_attrs.name = prefs.vw_fontname; @@ -2135,7 +2135,7 @@ static void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) if (old_style) old_style->unref (); - table = new Table(false); + table = new Table(prefs.limit_text_width); DW2TB(html->dw)->addWidget (table, cell_style); cell_style->unref (); @@ -2224,9 +2224,9 @@ static void Html_tag_open_table_cell(DilloHtml *html, == TEXT_ALIGN_STRING) col_tb = new TableCell ( ((Table*)S_TOP(html)->table)->getCellRef (), - false); + prefs.limit_text_width); else - col_tb = new Textblock (false); + col_tb = new Textblock (prefs.limit_text_width); if (new_style) { style = Style::create (HT2LT(html), &style_attrs); @@ -2510,7 +2510,7 @@ static void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize) // // style_attrs.margin.setVal (5); // style = Style::create (HT2LT(html), &style_attrs); -// page = new Textblock (false); +// page = new Textblock (prefs.limit_text_width); // page->setStyle (style); // style->unref (); // a_Dw_container_add (DW_CONTAINER (button), page); @@ -3232,7 +3232,7 @@ static void Html_tag_open_li(DilloHtml *html, const char *tag, int tagsize) DW2TB(html->dw)->addParbreak (2, word_style); - list_item = new ListItem ((ListItem *)*ref_list_item, false); + list_item = new ListItem ((ListItem *)*ref_list_item,prefs.limit_text_width); DW2TB(html->dw)->addWidget (list_item, item_style); DW2TB(html->dw)->addParbreak (2, word_style); *ref_list_item = list_item; diff --git a/src/plain.cc b/src/plain.cc index 79a7bf98..19ecdd3a 100644 --- a/src/plain.cc +++ b/src/plain.cc @@ -94,7 +94,7 @@ DilloPlain::DilloPlain(BrowserWindow *p_bw, const DilloUrl *p_url) /* Init internal variables */ bw = p_bw; url = a_Url_dup(p_url); - dw = new Textblock (false); + dw = new Textblock (prefs.limit_text_width); Start_Ofs = 0; state = ST_SeekingEol; |