Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Treeview: Rationalise initialisation and finalisation. | Michael Drake | 2016-08-10 | 13 | -60/+72 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the expected behaviour for front ends using the correct API for hotlist, global history, cookie manager, and ssl cert viewer was that the front end would initialise the treeview module on startup and finalise it on application exit. However, this meant that the front ends had to include the core treeview header, which they didn't otherwise need. Since the tree module provided access to the new treeview utilities through the old tree API, and was used by front ends with no changes for the new treeview API, the tree layer refcounted initialisations of treeview-based widgets, and only called the underlying treeview init/fini functions when needed. This change moves that refcounting into the treeview module. Now the hotlist, global history, cookie manager, and ssl cert viewer widgets call call treeview init/fini as part of their own initialisation and finalisation. This means that front ends using the correct APIs for treeview-based widgets don't need to know anything about the underlying treeview, and the tree module compatibility layer has had its treeview refcounting removed. Finally, the treeview_init function took a font size parameter. Now it does not and lit gets font size from config. We probably want to add a new `treeview_font_size` option to nsoptions, and have differnent defaults on different platforms. 12pt on RISC OS, and 11pt elsewhere, most likely. | ||||
* | Use the API for duplicating IORequests | Chris Young | 2016-08-10 | 1 | -17/+48 |
| | | | | | | Add some more debug: It appears that some timer events are not being picked up, I can see in the log that something which should have been signalled is not being run. Enabling the log appears to make the situation worse. | ||||
* | Always wait for at least some time, as it's ambiguous as to whether a 0.0s ↵ | Chris Young | 2016-08-10 | 1 | -0/+2 |
| | | | | timerequest is valid. | ||||
* | more debug | Chris Young | 2016-08-09 | 1 | -2/+3 |
| | |||||
* | Decouple the scheduler from system time | Chris Young | 2016-08-09 | 1 | -69/+54 |
| | | | | | This is a hang-over from the old polling scheduler. I've modified it to use relative times and pass the callback along with the TimeRequest so events get executed in the order they arrive. The list of events is still in a heap sorted by expected execution time, but this may need to change to something more efficient for random lookups. | ||||
* | add more tests for partial iterator in url database | Vincent Sanders | 2016-08-09 | 1 | -3/+83 |
| | |||||
* | ensure url database destructor cleans up correctly | Vincent Sanders | 2016-08-09 | 1 | -2/+7 |
| | |||||
* | add more API coverage to url database unit tests | Vincent Sanders | 2016-08-09 | 1 | -6/+21 |
| | |||||
* | extend url database unit testing to cover more API | Vincent Sanders | 2016-08-09 | 3 | -14/+118 |
| | |||||
* | add cookies tests to url database unit testing | Vincent Sanders | 2016-08-09 | 1 | -11/+116 |
| | |||||
* | We don't need ReplyMsg here. | Chris Young | 2016-08-09 | 1 | -4/+4 |
| | | | | | TimerRequests are removed from the message queue by WaitIO() which is ultimately called when the event is taken off the heap. The event on the top of the heap is _not necessarily_ the one which signalled us, though, and we should probably be handling this better. | ||||
* | Scheduler debug logging | Chris Young | 2016-08-09 | 1 | -4/+11 |
| | |||||
* | add cookie database load and restore unit test | Vincent Sanders | 2016-08-09 | 2 | -3/+50 |
| | |||||
* | extend url database checks to cover authentication detail setter and getter | Vincent Sanders | 2016-08-08 | 1 | -2/+23 |
| | |||||
* | add some basic url database iteration tests | Vincent Sanders | 2016-08-08 | 2 | -36/+80 |
| | |||||
* | add url databse write output to unit test | Vincent Sanders | 2016-08-08 | 2 | -4/+19 |
| | |||||
* | Fix warnings in unit tests | Vincent Sanders | 2016-08-08 | 6 | -69/+75 |
| | |||||
* | Tests: Squash more warnings. | Michael Drake | 2016-08-08 | 1 | -3/+3 |
| | |||||
* | Tests: Squash some warnings. | Michael Drake | 2016-08-08 | 2 | -6/+6 |
| | |||||
* | Add header that may be needed for Windows build. (CI fix attempt.) | Michael Drake | 2016-08-08 | 1 | -0/+1 |
| | |||||
* | fix urldb warning and test build | Vincent Sanders | 2016-08-08 | 2 | -5/+13 |
| | |||||
* | update urldb dump to use LOG rather than writing to stderr directly | Vincent Sanders | 2016-08-08 | 1 | -8/+19 |
| | |||||
* | wrap urldb tests in check harness and add minimal session test | Vincent Sanders | 2016-08-08 | 2 | -55/+246 |
| | |||||
* | Utils: Split time handling functions out of `utils.c` into `time.c`. | Michael Drake | 2016-08-07 | 3 | -111/+154 |
| | |||||
* | Indentation: spaces to tabs. | Michael Drake | 2016-08-07 | 1 | -3/+3 |
| | |||||
* | add unit test for user message handling | Vincent Sanders | 2016-08-06 | 4 | -1/+872 |
| | |||||
* | remove unused GTK treeview code completely repalced with core window API | Vincent Sanders | 2016-08-06 | 4 | -677/+1 |
| | |||||
* | convert GTK hotlist to use GTK core window | Vincent Sanders | 2016-08-06 | 5 | -122/+259 |
| | |||||
* | fix hotlist keypress consumption return | Vincent Sanders | 2016-08-06 | 2 | -4/+4 |
| | |||||
* | add some more bad values to choices file to ensure parser can cope | Vincent Sanders | 2016-08-06 | 1 | -0/+11 |
| | |||||
* | remove erroneous parameter check to nsoption_snoptionf | Vincent Sanders | 2016-08-06 | 2 | -3/+1 |
| | | | | | | The API check and bounds check for option indexes was from an unsigned enum so checking for negative numbers was causing "comparison is always false" errors in compilation. | ||||
* | fix formatted option no init test | Vincent Sanders | 2016-08-06 | 1 | -1/+1 |
| | |||||
* | improve option test coverage futher | Vincent Sanders | 2016-08-06 | 2 | -5/+73 |
| | |||||
* | improve user option testing to cover all the API | Vincent Sanders | 2016-08-06 | 3 | -16/+179 |
| | |||||
* | Improve user option testing and API parameter checking | Vincent Sanders | 2016-08-05 | 5 | -53/+616 |
| | |||||
* | rename gtk global history implementation | Vincent Sanders | 2016-08-04 | 6 | -6/+4 |
| | |||||
* | convert GTK global history to use GTK core window | Vincent Sanders | 2016-08-04 | 4 | -142/+274 |
| | |||||
* | fix global history keypress consumption return | Vincent Sanders | 2016-08-04 | 2 | -3/+3 |
| | |||||
* | add tests for utility string handling | Vincent Sanders | 2016-08-04 | 3 | -3/+164 |
| | |||||
* | add url escape test for complete garbage input | Vincent Sanders | 2016-08-03 | 1 | -0/+1 |
| | |||||
* | Improve percent escaping testing, parameter checking and documentation | Vincent Sanders | 2016-08-03 | 2 | -28/+179 |
| | |||||
* | Add url percent escape test with minimal test vectors | Vincent Sanders | 2016-07-31 | 2 | -1/+182 |
| | |||||
* | add basic documentation on unit testing using check | Vincent Sanders | 2016-07-31 | 1 | -0/+166 |
| | |||||
* | make gtk certificate viewing use gtk core window API | Vincent Sanders | 2016-07-31 | 2 | -73/+202 |
| | |||||
* | fix certificate viewer keypress consumption return | Vincent Sanders | 2016-07-31 | 2 | -5/+3 |
| | |||||
* | Allow certificate verification user prompt creation to return errors | Vincent Sanders | 2016-07-31 | 14 | -33/+55 |
| | |||||
* | make gtk cookies manager use core window API | Vincent Sanders | 2016-07-31 | 3 | -90/+199 |
| | |||||
* | add nsgtk support for core window API | Vincent Sanders | 2016-07-31 | 3 | -1/+743 |
| | |||||
* | fix gdk to nskey mapping for home/end and missing keypad mappings | Vincent Sanders | 2016-07-31 | 1 | -12/+44 |
| | |||||
* | Fix cookie manager keypress consumption return | Vincent Sanders | 2016-07-31 | 2 | -3/+3 |
| |