Commit Graph

62 Commits

Author SHA1 Message Date
Michael Drake
83f77d3a41 Don't need gtkdefault.css now. 2015-06-22 14:24:51 +01:00
Vincent Sanders
a94ae7a80a Allow translation messages to be compiled in as GTK resources 2015-06-21 23:27:22 +01:00
Vincent Sanders
3e2270482f Make GTK resource handling configurable
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.
2015-06-17 21:35:40 +01:00
Vincent Sanders
59fbd51a77 Add legacy support for inline pixbuf usage
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.
2015-06-17 21:35:40 +01:00
Vincent Sanders
8ef292b9ca Change GTK UI builder handling to use resource API
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.
2015-06-17 21:35:40 +01:00
Vincent Sanders
c4d5393a97 move gtk menu cursor creation into separate resourec handling module
The gtk resource handling must be changed for GTK3 as creating from
inline is depricated. This is the first step to splitting out the
support.
2015-06-04 22:43:11 +01:00
Vincent Sanders
a29e9589f6 Change how GDK image resources are compiled in.
The compiled in image resources were being created as a structure in a
generated c source file. The generation of this file caused constness
warning as a guint8 * was initialised from a const char array.

This changes the generation and use of these compiled in resources to
use the raw inline form as suggested by the documentation removing the
const warning.
2015-05-20 16:43:48 +01:00
Vincent Sanders
7e2f1094ce Remove unused thumbnail sources from core and gtk 2015-04-23 22:50:16 +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
2465fc4e6b move the mandantory library config for libcss and libdom to core makefile 2015-04-17 22:48:55 +01:00
Vincent Sanders
c134750575 split out gtk SSL certificate verification dialog impementation. 2015-04-12 17:26:22 +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
e62db5a49c define _DEFAULT_SOURCE as well as _BSD_SOURCE to supress warnings in glibc 2.12 2015-03-28 18:25:41 +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
d204d6d555 Clean up saving as PDF
This removes the global PDF_Password interface that had completely
bitrotted and moves it into the standard misc operation table with a
sensible defualt implementation.

This also cleans up and fixes the gtk frontend implementation of the
pdf password callback so it compiles.

Finally this moves the implementation to a sensible place alongside
the other exporters reducing target makefile complexity futher.
2014-10-26 23:53:14 +00:00
Michael Drake
6b846c363d Add trivial maps facilitator at about:maps
This is a simple HTML front end for the Google Static Maps API, since
we don't yet have enough JS support for the full Google Maps.

See:
  https://developers.google.com/maps/documentation/staticmaps/
2014-10-22 20:42:21 +01:00
Vincent Sanders
e825f38437 move about and preferences window handling to more sensible position 2014-09-22 23:18:03 +01:00
Vincent Sanders
4f530a3f8f Pull warning flags out into variables that can be overriden seperately for C and C++ 2014-09-05 16:01:44 +01:00
Vincent Sanders
e5d2cba11f fix gtk install target to provide language fallback 2014-08-19 15:59:51 +01:00
Vincent Sanders
d0da99beca extend gtk viewdata to open files in an editor using the freedesktop default app specification 2014-08-16 23:33:12 +01:00
Vincent Sanders
58eea873f8 rationalise source view 2014-08-01 01:00:13 +01:00
Vincent Sanders
8ce0a10670 move path_to_url and url_to_path to fetch operation table 2014-01-25 23:01:32 +00:00
Vincent Sanders
5a408069c9 remove lcms dependancy as NetSurf does not directaly use it.
The dependancy probbaly comes from our historical use of libmng,
even then the libmng pkg-config should bring it in.
2014-01-04 16:13:10 +00:00
Vincent Sanders
8b43b732bc move gtk frontend to use new options API 2013-05-28 14:16:11 +01:00
Vincent Sanders
8df67ca801 Ensure default C language is installed 2013-04-28 22:06:30 +01:00
Vincent Sanders
fc9097fb1f provide gettext hooks to use the netsurf localisation system
This means the internal message system is used for gettext calls from
gtk libraries.
2013-04-14 11:27:42 +01:00
Vincent Sanders
33934e1271 implement the GTK preferances dialog with signals 2013-01-01 00:59:47 +00:00
Vincent Sanders
484fa8b110 move common include path setup to core Makefile 2012-12-20 15:27:07 +00:00
Vincent Sanders
16d67095a6 add pkg-config macro for libraries which are not controled by configuration 2012-12-13 17:23:47 +00:00
Vincent Sanders
45906b9dc2 make macro name more correct 2012-12-13 16:31:05 +00:00
John-Mark Bell
617d655c7b Remove libxml 2012-11-10 00:11:57 +00:00
Anthony J. Bentley
4c82afa287 Fix GNUisms to make things more portable.
On OpenBSD, install does not take a -v flag, and tar does not default to
stdin/stdout.
2012-11-07 08:43:28 +00:00
Vincent Sanders
f16d560f6f add math library to link 2012-11-05 17:20:33 +00:00
John-Mark Bell
07a53f4b44 Appease ancient "install" by removing -C 2012-11-05 09:08:52 +00:00
Rob Kendrick (fatigue)
abb1251461 Try to rationalise the gtk install target somewhat 2012-11-04 11:17:41 +00:00
John-Mark Bell
f824ab8af4 Port save complete to libdom. 2012-11-03 23:19:45 +00:00
Daniel Silverstone
180f7ff42c Merge Vincent's Javascript work onto master 2012-11-03 15:13:43 +00:00
Rob Kendrick (monotony)
118b03a786 Add a macro to split and install messages files, and have gtk front end use it. 2012-11-03 11:16:33 +00:00
Daniel Silverstone
5631943e40 Ensure that we turn on JS sources if either of USE_JS or USE_MOZJS is triggered 2012-11-02 23:03:20 +00:00
Rob Kendrick (monotony)
de074a3ada Deference symlinks when installing. This should be rewritten to use the install tool 2012-11-02 19:13:09 +00:00
Rob Kendrick (humdrum)
c2eff23c0d Make GTK install target work again, and make copy flags consistent 2012-10-02 13:07:32 +01:00
Vincent Sanders
e237ebac8f Split install and package targets.
Install target is for installing on the local machine and package generates a package
2012-08-23 11:46:31 +01:00
Michael Drake
1086fc5246 Change order of libs. 2012-08-21 14:17:11 +01:00
Vincent Sanders
804bec4f99 make non js builds compile
make js support compile with older debian/ubuntu packaging


svn path=/trunk/netsurf/; revision=13990
2012-06-27 23:17:18 +00:00
Vincent Sanders
4c89c9d5df improve javascript support
svn path=/trunk/netsurf/; revision=13962
2012-06-10 22:17:30 +00:00
Vincent Sanders
2622adaa1f allow netsurf to build with gtk3
svn path=/trunk/netsurf/; revision=13926
2012-05-16 19:57:43 +00:00
Vincent Sanders
b21f85a072 initial move to libdom
svn path=/trunk/netsurf/; revision=13573
2012-03-23 23:18:04 +00:00
Michael Drake
aac69e6478 s/s/S/
svn path=/trunk/netsurf/; revision=13366
2012-01-02 13:42:51 +00:00