summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add coverage to the unit test makefile targetsVincent Sanders2015-07-083-48/+83
| | | | | | The tests now only require that the test name is added to the TESTS variable and a testname_SRCS is set with a list of required sources to compile.
* convert nsurl tests to use check unit test frameworkVincent Sanders2015-07-083-217/+290
|
* Restructure test makefile to be called from main makefileVincent Sanders2015-07-074-42/+153
| | | | | | This changes the make test to be executed from the main netsurf makefile instead of being standalone. It also fixes up the urldbtest to run.
* make nsurl unit test work againVincent Sanders2015-07-076-11/+21
|
* Allow a fallback font for characters above 0xFFFF to be specified. There is ↵Chris Young2015-07-065-5/+33
| | | | no scanning of this range as most fonts don't have any characters here. Symbola is selected if it is installed.
* Support UTF-16 surrogates. This enables Emoji to be displayed if an ↵Chris Young2015-07-061-6/+24
| | | | | | appropriate font is installed. NB: Currently surrogate glyphs are not able to use the fallback font. The wrong glyphs may be displayed if you use an "old font engine".
* Split UTF-16 char length check into a separate functionChris Young2015-07-061-17/+16
|
* Correct broken ifdefChris Young2015-07-051-1/+1
|
* Fix logging to stderr if verbose_log was set before nslog_init was calledVincent Sanders2015-07-051-2/+5
|
* Fix a signed comparison error in nsurl parsing.Vincent Sanders2015-07-041-1/+1
| | | | | | | | | | | | | | | | | | | In utils/nsurl.c the function nsurl__create_from_section() has a section dealing with non-redundant ports (starting line 973). lwc_intern_string() was being called with negative lengths and as it takes a size_t (unsigned) so is getting passed a very large length which causes a segfault. this is supposed to be protected by the flag setting on line 969 however the arithmetic is all *unsigned* so the condition never matches (gdb) p length - (colon - pegs->at + skip) $9 = 18446744073709551608 changing the check arithmetic to be a simple comparison against length prevents this issue and reduces the amount of computation required.
* split out windows file operations into a separeate moduleVincent Sanders2015-06-307-265/+333
|
* Improve gtk scaffolding documentationVincent Sanders2015-06-301-35/+48
|
* Ensure gtk windows have a default favicon at creation.Vincent Sanders2015-06-301-4/+11
| | | | | | | This ensures newly created gtk gui windows have a default favicon set. This is necessary because new tab creation displays the new windows contents before an icon has been set and the icon will not be changed from the previously viewed tabs icon.
* Fix missing unistd includes to allow building with older headersVincent Sanders2015-06-292-1/+3
|
* Add missing include to gtk scaffoldingVincent Sanders2015-06-291-0/+1
| | | | Without unistd access, close and unlink were not properly defined
* fix glib resource API usage even when gresource was disabledVincent Sanders2015-06-291-0/+9
|
* Improve resource code to not try and use g_resource calls when disabled.Vincent Sanders2015-06-291-1/+5
|
* Allow gtk preferences language selection resource to be inlineVincent Sanders2015-06-252-41/+138
| | | | | | | This allows the languages resource to be read from file or from inline data. Additionally it fixes a bug where the language combo box would always be reset to en as the default regardless of what was currently configured.
* Fix error reporting from fetch_startVincent Sanders2015-06-244-47/+79
| | | | | | | Any fetch start error was being reported as "out of memory" which was clearly insufficient. Foe example bad urls (reported was file:// with a missing /) were causing a warn_user with out of memory. This change now at least causes a "bad url" message.
* Update GTK url bar completion to navigate on selectionVincent Sanders2015-06-233-60/+142
|
* Change gtk message and language handling to use resource namesVincent Sanders2015-06-238-39/+62
| | | | | | | | | | The GTK resource handling can now provide the path to resources rather than having to compute them separately. This reduces run time allocation and allows for the resources to be built in if required. Additionally this tweaks the resource scheme handling to redirect favicon.ico to resource:favicon.png instead of rewriting directly to file scheme path allowing the favicon to be a compiled in resource.
* Allow GTK to include inline resources for default cssVincent Sanders2015-06-222-0/+6
|
* fix unused variable warning in framebuffer Message loadingVincent Sanders2015-06-221-1/+4
|
* Scale cached favicons before they are cached. This avoids the need to scale ↵Chris Young2015-06-223-2/+10
| | | | icons on menu creation.
* Remove the overwrite check in bitmap_save as it causes duplicate overwrite ↵Chris Young2015-06-221-4/+0
| | | | requesters.
* Add an appropriate file extension when saving, or leave the existing if ↵Chris Young2015-06-221-3/+30
| | | | we're saving source. This fixes the remainder of #2185
* Don't need gtkdefault.css now.Michael Drake2015-06-223-14/+1
|
* Consolidate default style.Michael Drake2015-06-222-20/+8
|
* fixup missing lincludes from messages API updateVincent Sanders2015-06-223-0/+3
|
* Allow translation messages to be compiled in as GTK resourcesVincent Sanders2015-06-216-31/+192
|
* This moves message loading out of netsurf_init into each frontendVincent Sanders2015-06-2114-31/+90
| | | | | | | | | | The translated message loading is dependant on configuration of resource location in each frontend, additionally they should have the ability to deal with errors in this loading in a implementation specific manner. This also extends the message loading API to be capable of loading from an inline memory buffer instead of from a file.
* Move the browser identification and machine info logging.Vincent Sanders2015-06-212-9/+20
| | | | | | | | Previously this information was logged when netsurf_init was called which might be many lines out output into the log. It is useful to have this information at the beginning of the log to make it easily found. In addition it makes netsurf_init less complex.
* Change GTK resource path to use the users netsurf directoryVincent Sanders2015-06-211-2/+37
| | | | | | This changes the path used to find resources from containg a hard coded ${HOME}/.netsurf to using the computed path to the users netsurf config.
* Clean up doxygen errors in image handlers.Vincent Sanders2015-06-213-8/+11
|
* Space ARexx menu items correctly.Chris Young2015-06-211-1/+2
|
* Fix the capitalisation of "New tab" to matach "New window" etc.Chris Young2015-06-211-1/+1
|
* Require gadtools 53.7Chris Young2015-06-201-2/+2
| | | | OS4.1u6 does not cope well with image menus, so insist on a component in FE to ensure the layouting is sane and menu creation is fast.
* Stop unused variable warning when no core image handlers are enabled.Vincent Sanders2015-06-181-2/+2
|
* Fix cocoa_bitmap_modified scope error introduced in cleanupVincent Sanders2015-06-181-1/+1
|
* Fix several warnings in cocoa frontendVincent Sanders2015-06-185-121/+116
|
* Add direct resources to GTKVincent Sanders2015-06-176-104/+346
| | | | | | This adds API to obtain direct pointers to arrays of data from compiled in resources. Additionally it hooks this up to provide data for the resourece scheme handler.
* Allow the resource scheme to provide data directly.Vincent Sanders2015-06-173-50/+196
| | | | | | This allows front ends to provide resources from compiled in data instead of requiring the resources to be available on disc and forcing a redirect.
* Change gtk to use resource API for throbberVincent Sanders2015-06-175-86/+60
|
* Make GTK resource handling configurableVincent Sanders2015-06-175-17/+76
| | | | | | | | This makes the GTK resource handling configurable in the same way as all other pkg-config style feature options. It is now possible to completely disable compiled in resources if wanted as well as forcing inline pixdata on if desired.
* Add legacy support for inline pixbuf usageVincent Sanders2015-06-172-16/+44
| | | | | | | | | Before GResource it was possible to compile pixbufs as inline elements. This has historically been done for the menu cursor only. This change integrates the inline support and uses it when the GResource support is not selected.
* update default gtk window icon source to use resourcesVincent Sanders2015-06-173-5/+9
|
* Change GTK UI builder handling to use resource APIVincent Sanders2015-06-1724-561/+983
| | | | | | | | | | | | | | GTK UI builder resources have till now been exclusively stored on disc requiring netsurf to ship numerous additional resource files. This requires going to disc every time a UI action is performed which can become a lot of unwanted file handling. GLib/GTK has moved towards GResource handling for such resources instead. It now seems that migrating to this style of usage is expected and indeed the only portable way to include pixbufs. This introduces an API to hide the various implementation details of how resources are handled from the rest of the codebase.
* Add links to dutch resources for gtk frontendVincent Sanders2015-06-173-0/+3
|
* Prettify pull-down (not context) menu.Chris Young2015-06-162-36/+47
|
* Remove some workarounds to make image menus conform better on OS4.1u6. They ↵Chris Young2015-06-161-31/+2
| | | | never quite matched normal menus so are going to look odd when we add more images anyway.