Commit Graph

923 Commits

Author SHA1 Message Date
Vincent Sanders
de98108e7f Add render to bitmap operations and update gtk to provide it. 2015-04-22 23:14:51 +01:00
Vincent Sanders
e7f9dbcb10 Remove webp image handling
The bitmap and image handling interfaces have changed within NetSurf
and the webp image handling has not been fixed up appropriately to
cope.

After discussion with the other developers it has been decided that
the webp support is not worth the necessary development effort to
rewrite and maintain.

The webp format is not in wide usage and Mozilla, Microsoft and Apple
have not adopted it. This means the removal will not adversely impact
NetSurf.

Resolves:2310
2015-04-21 14:03:02 +01:00
Vincent Sanders
eab53da088 Remove unecessary inclusion of the image bitmap header 2015-04-20 22:03:43 +01:00
Vincent Sanders
2465fc4e6b move the mandantory library config for libcss and libdom to core makefile 2015-04-17 22:48:55 +01:00
Vincent Sanders
89a3f250d2 Ensure GTK source viewer reports errors appropriately. 2015-04-17 10:40:11 +01:00
Vincent Sanders
7ec917eed2 ensure memory is freed on error path in gtk viewdata 2015-04-17 10:06:21 +01:00
Vincent Sanders
82c1ed9f4a Ensure gtk XDG editor handling never uses an unintialised value. 2015-04-17 09:34:52 +01:00
Vincent Sanders
9679561eca Update monkey frontend to use bitmap operation table. 2015-04-15 22:05:10 +01:00
Vincent Sanders
cc11912da1 Convert framebuffer frontend to bitmap operations table. 2015-04-14 23:08:02 +01:00
Vincent Sanders
c02f552e87 chnage GTK frontend to using bitmap operation table 2015-04-13 23:49:44 +01:00
Vincent Sanders
4133154215 fix documentation errors in gtk introduced by recent updates. 2015-04-12 21:42:33 +01:00
Vincent Sanders
de09dc8efd clean up gtk gui header usage and includes 2015-04-12 20:26:53 +01:00
Vincent Sanders
d513d6261a actually add the files from the previous gtk ssl rework commit 2015-04-12 17:55:46 +01:00
Vincent Sanders
c134750575 split out gtk SSL certificate verification dialog impementation. 2015-04-12 17:26:22 +01:00
Vincent Sanders
fb73ff80ed Fixup gtk3 ssl certificate dialog and ensure its parent is set. 2015-04-12 13:52:56 +01:00
Vincent Sanders
997e8999d5 Refactor GTK toolbar handling to correctly cope with text labels 2015-04-12 01:12:43 +01:00
Vincent Sanders
f3158f79b6 remove usage of deprecated gtk alignment interface 2015-04-11 22:32:08 +01:00
Vincent Sanders
5e51600cfe Add gtk compatability for margin setting. 2015-04-11 18:41:00 +01:00
Vincent Sanders
df4e9e322d Add widget alignment gtk compatability interface. 2015-04-11 15:20:52 +01:00
Vincent Sanders
e193566de4 Improve the stock icon/icon name compatability logic to be explicit 2015-04-11 00:28:32 +01:00
Vincent Sanders
4f13cbd31c Fixup deprication of gtk_icon_size_lookup_for_settings in gtk 3.10 2015-04-10 16:39:23 +01:00
Vincent Sanders
267fb0b00e cope with deprication of image menus in GTK 3.10 2015-04-10 16:20:55 +01:00
Vincent Sanders
1922eb1e2a remove no longer required gtk_dialog_get_action_area compatability interface 2015-04-10 15:23:15 +01:00
Vincent Sanders
98f8acdfe5 Change gtk about dialog construction to use the API as intended.
The about dialog box construction was awkward and brittle using
several depricated interfaces. This changes it to use a more generic
dialog creation and uses the response API to simplify click
processing.

It would be even better to use the gtk about dialog but that is a more
invasive change.
2015-04-10 13:19:22 +01:00
Vincent Sanders
44c0196dbf extend GTK 3 compatability with opacity and viewport helpers 2015-04-10 00:36:47 +01:00
Vincent Sanders
85f90899ed Fix up silly recusrsion typo in nsgtk_button_new_from_stock compatability 2015-04-10 00:24:01 +01:00
Vincent Sanders
50f68b11a4 fixup default toolbar button creation for depricated GTK 3 operations 2015-04-10 00:06:48 +01:00
Vincent Sanders
23ae8ccf11 Extend gtk compatability to fix more items depricated in GTK 3.10 2015-04-09 23:25:05 +01:00
Vincent Sanders
ab997398ad cope with deprication of gtk_style_context_get_font 2015-04-09 14:10:14 +01:00
Vincent Sanders
b9b952cddf Ensure the about dialog construction does not cause warnings
The about dialog construction calls were missing a NULL sentinal which
was causing warnings on GTK 3 builds.
2015-04-09 11:43:53 +01:00
Vincent Sanders
ae98fbe8c8 Only define compatability helpers for sexy icons if required.
The helper nsgtk_widget_get_state is only necessary for sexy icons and
introduces unecessary GTK 3 compatability issues otehrwise.
2015-04-09 11:41:06 +01:00
Vincent Sanders
5a14a74ab1 Update gtk compatability header to cope with deprication of stock icon interface 2015-04-08 22:21:30 +01:00
Vincent Sanders
a838fa3ee9 Improve split message generation
Changes the way message files are generated to be driven by make as
rules rather than from explicit macro calls causing their regeneration
every build.

A secondary benefit is that errors in message generation actually stop
the build instead of being ignored

Each frontend will require its filter settings updated to avoid
getting the default message filter of "any". Initially gtk has been
adapted as proof of concept.
2015-04-07 00:44:35 +01:00
Vincent Sanders
ea9a2ff01d Fix up some doxygen errors 2015-04-03 00:28:22 +01:00
Vincent Sanders
e62db5a49c define _DEFAULT_SOURCE as well as _BSD_SOURCE to supress warnings in glibc 2.12 2015-03-28 18:25:41 +00:00
Witold Filipczyk
befa5e6ed3 To avoid namespace conflicts with ncurses add NetSurf key prefix.
Adds a NetSurf key code prefix of NS_ to all key codes.
2015-03-27 09:36:19 +00:00
Vincent Sanders
8a99b045bc Remove url from content thumbnailers API
The content thumbnailers for each frontend were being provided the
contents url. This was only ever used to call the urldb thumbnail
setting API.

This changes it so the single callsite that passed a valid url adds
the bitmap to that url itself in desktop_history.c instead of forcing
every frontend to require the urldb API.

Additionally the old API could pass the url as NULL which was causing
asserts where this was not an expected parameter value. Because of
this this fixes bug #2286 which was also present in the monkey
frontend as both called nsurl_access() on the url without the NULL
check and caused an assertion.
2015-03-15 00:00:45 +00:00
Vincent Sanders
5d3cc513a3 Fixup gtk viewdata window to open at appropriate size
The size hints given were insufficient for gtk to open the window at a
sensible size or position. This fixes it to open with a default
640x480 size which is a reasonable compromise.

The gtk3 ui builder file was completely reconstructed from fresh as it
was broken and was not working.
2015-03-06 17:16:09 +00:00
Michael Drake
cbd9d710a3 Use forward declaration instead of #include for nsurl. 2015-02-26 16:14:23 +00:00
Michael Drake
30909f8ed5 Move FILE_SCHEME_PREFIX to corestrings. 2015-02-26 16:14:23 +00:00
John-Mark Bell
5f0964fa09 GTK: inherit GTK version from environment. 2015-02-24 14:07:47 +00:00
Vincent Sanders
6b645664fe add missing includes 2014-12-27 22:48:37 +00:00
Vincent Sanders
5eefe00163 remove unecessary includes from gtk gui 2014-12-27 22:25:38 +00:00
Vincent Sanders
959af3dc28 Add XDG desktop file for GTK frontend
The XDG spec allows for software to specify how it is executed and
presented in a graphical environment by using a desktop file
http://standards.freedesktop.org/desktop-entry-spec/latest/

This version is taken from my Debian packaging but should be useful
for other operating systems.
2014-12-25 15:49:35 +00:00
Vincent Sanders
e467077a21 move host based default settings to core as tehy are not frontend dependant 2014-12-21 16:22:54 +00:00
Vincent Sanders
193a5c80b7 ensure gtk build on freebsd uses the correct iconv 2014-12-21 15:06:07 +00:00
Vincent Sanders
8e60d32831 remove some warnings from freebsd build 2014-12-21 02:01:45 +00:00
Vincent Sanders
c6ada5c089 Cope with freebsd gdk paths 2014-12-21 01:25:36 +00:00
Vincent Sanders
79e501075a make the form select menu API smaller.
By hiding all but the form selection menu option structure from code
outside of render this reduces the API to the absolute minimum to
support this feature.
2014-11-13 21:52:08 +00:00
Vincent Sanders
9fde3502b6 doxygen cleanups in utils 2014-11-12 23:27:13 +00:00