aboutsummaryrefslogtreecommitdiff
path: root/dpi/downloads.cc
AgeCommit message (Collapse)Author
2024-12-11Use Dillo user agent for downloads tooRodrigo Arias Mallo
Send the user agent to the downloads DPI so we can use the same as Dillo uses from the http_user_agent option. See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/A6IHJ4TBGHJ3CT2UOMEAROSG2WRTRO6U/
2024-08-07Fix pedantic warningsRodrigo Arias Mallo
Reviewed-by: dogma
2024-06-12Fix segfault in Done button of downloadsRodrigo Arias Mallo
The destructor was using a harcoded index to the elements to free from the original array of arguments used to call the wget program. When the user agent was introduced, the index of the elements that require free() shifted, causing the free() call to operate on the constant string of the user agent instead. Rather than relying on the hardcoded index, two new pointers hold the values of the strings that need to be free()'d in the destructor. Further additions in the argument array won't cause more problems. Reported-by: pastebin <pastebin@gmx.com> Fixes: https://github.com/dillo-browser/dillo/issues/196 See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/IPWQYKTYTO5G2BH3UU5224FRUFWCVGSO/
2024-04-12Use uppercase "Dillo" for wget user agentRodrigo Arias Mallo
Reported-by: dogma
2024-04-11Use the current version in wget user agentRodrigo Arias Mallo
Fixes: https://github.com/dillo-browser/dillo/issues/130
2019-07-29Fix wget User-Agent for arXivRodrigo
Fixes #1 by setting the user agent to "Dillo/3.0.5". A proper fix must let the user choose any string.
2016-08-10Fix minor indentation typo.Jorge Arellano Cid
2014-12-21trim some spacescorvid
2013-01-09Refactored FD close calls into a single new dClose() dlib function [p37sitdu]Jorge Arellano Cid
2013-01-08downloads.cc: do not test whether the file exists or prompt to overwrite.Jeremy Henty
2012-12-12Download DPI Scroll should calculate the scrollbar width properly.Jeremy Henty
2012-12-11Download DPI Scroll should resize itself before resizing its child.Jeremy Henty
2012-12-10Downloads DPI: meaningful and consistent window titles.Jeremy Henty
2012-11-28Add "#include <FL/fl_ask.H>" wherever its functions are used.Jeremy Henty
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-10-17downloads DPI: make the download items resize horizontally with the main window.Jeremy Henty
2011-10-05dpi/download.cc: make the indentation more consistent.Jeremy Henty
2011-09-15let downloads dpi use the fltk schemecorvid
In dillo, fltk putenv()s the scheme (FLTK_SCHEME), and Fl::scheme(NULL) getenv)s it. Not that it makes much of a difference to the downloads dpi...
2011-09-13use a dRealloccorvid
mentioned by Alexander on dillo-dev
2011-09-06remove trailing whitespaceJorge Arellano Cid
2011-07-30fix clang warningRob S
2011-07-27escape '@' in wget log output shown in downloads dpi tooltipcorvid
There are opportunities for optimizations and cleverness, but it's nice to think of workarounds as something simple and minimally intrusive that you will get to rip out again someday. I'll have to check whether I've ever complained to the FLTK people about this specific problem.
2011-07-27disable symbol/shortcut interpretation in the downloads dpi's labelscorvid
TODO: '@' in the wget output tooltip
2011-06-30Workaround for downloads dpi: It had display glitches on some machines. !?Jorge Arellano Cid
2011-06-27Replaced fl_input() with a custom dialogJorge Arellano Cid
* avoids sound bell, allows customization (e.g. widgets, keyboard)
2011-06-21Eliminated a pack of 22 compiler warnings (gcc-4.6.1 amd64)Jorge Arellano Cid
2011-05-19delete []corvid
2011-04-30downloads GUI: fixed a couple of rendering glitchesJorge Arellano Cid
Removing entries wasn't updating the screen. Workaround for a FLTK-1.3 bug with FL_ROUND_UP_BOX.
2011-04-29Fixed downloads dpi GUI (close and rename dialogs, colors)Jorge Arellano Cid
close and rename dialog had option processing reversed since the port. some colors of in the old theme were not showing. "continue" on a partial file didn't update the meter. All fixed now.
2011-03-09Minor resolve for previous patchJorge Arellano Cid
2011-03-09mergeJorge Arellano Cid
2011-03-09Merged indentation patch. Kept one-char indentation for child widgetsJorge Arellano Cid
2011-02-25merge in recent changes from main repocorvid
2011-02-11downloads dpi: init some time variablescorvid
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-February/008058.html
2011-02-07dpi/downloads.cc: make the indentation consistent.Jeremy Henty
2011-01-07downloads: fix progress barcorvid
2011-01-07downloader compilescorvid
and if you resize it, you can see that it's _sort_ of working, even.
2010-12-13typocorvid
2010-11-16downloads dpi: RAW_LABEL for the widget displaying the filenamecorvid
Noticed with http://portal.acm.org/ft_gateway.cfm?id=1039523&type=pdf which redirected to a filename with lots of ampersands.
2010-10-09make dillo compile with clangJohannes Hofmann
* Variable length arrays are not allowed in C++. They are supported in C99 and gcc seems to accept them in C++ mode. Replace the few places where variable length arrays are used. * The widget member in ComplexButtonResource was colliding with the widget member of FltkResource, so rename it to childWidget.
2009-11-09downloads dpi div. by 0corvid
2009-11-01Made downloads dpi use dsh authJorge Arellano Cid
2009-07-17Added a_Dpip_get_attr_l() to DPIP's APIJorge Arellano Cid
2009-05-15add a couple of constJorge Arellano Cid
2009-03-18[mq]: fix-dlwin_new-commentJeremy Henty
2009-02-27[mq]: remove-fltk-bug-workaroundJeremy Henty
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-02-08's/if(/if (/g' 's/for(/for (/g' 's/while(/while (/g', and indentation.Jorge Arellano Cid
2009-01-02Ensure that the dlib dStr* functions are used everywhere.Jorge Arellano Cid
2008-10-30- Set the ScrollGroup as the resizable widget in downloads dpi.jcid