Commit Graph

115 Commits

Author SHA1 Message Date
Michael Forney
6a53b447e5 Declare global variables as extern in headers
Otherwise, each source file that includes the header will create a
new definition, which are usually merged together by the linker.

Multiple definitions of an object is not allowed in ISO C.
2019-06-30 09:52:06 +01:00
Vincent Sanders
dddc5eac94 Update schedulers return codes
The GTK and monkey frontends schedulers now return NSERROR_NOT_FOUND
 when a caller is using a negative schedule time to remove a callback.
2019-06-08 13:33:16 +01:00
Vincent Sanders
35bc2ccbb8 change content get_source_data interfaces to return uint8_t and size_t
previously these interfaces returned char * and unsigned int which was
undesirable.
2019-05-05 22:50:25 +01:00
Vincent Sanders
efdea7757b fix enum name incompatability between gtk 2 and 3 2019-05-05 15:38:19 +01:00
Vincent Sanders
6ff3238825 centralise monkey output generation 2018-11-03 15:12:50 +00:00
Michael Drake
96254254a6 GTK: Squash GCC8.2 warning.
frontends/gtk/download.c: In function ‘gui_download_window_create’:
frontends/gtk/download.c:829:10: warning: cast between incompatible function types from ‘gboolean (*)(gboolean)’ {aka ‘int (*)(int)’} to ‘gboolean (*)(void *)’ {aka ‘int (*)(void *)’} [-Wcast-function-type]
          (GSourceFunc) nsgtk_download_update, FALSE);
          ^
2018-11-03 11:00:09 +00:00
Michael Drake
5eb7345cc7 GTK: Make nsgtk_download_selection_action match GFunc prototype.
Squashes GCC 8.2 warning:

frontends/gtk/download.c:244:22: warning: cast between incompatible function types
from ‘nsgtk_download_selection_action’ {aka ‘void (*)(struct gui_download_window *)’}
to ‘void (*)(void *, void *)’ [-Wcast-function-type]
  g_list_foreach(dls, (GFunc)action, NULL);
                      ^
2018-11-03 08:48:24 +00:00
Michael Drake
df79047cb6 GTK: Squash a couple of warnings from GCC 8.2.
frontends/gtk/download.c: In function ‘nsgtk_download_do’:
frontends/gtk/download.c:238:24: warning: cast between incompatible function
types from ‘void (*)(GtkTreePath *)’ {aka ‘void (*)(struct _GtkTreePath *)’}
to ‘void (*)(void *, void *)’ [-Wcast-function-type]
   g_list_foreach(rows, (GFunc)gtk_tree_path_free, NULL);
                        ^
frontends/gtk/download.c:239:24: warning: cast between incompatible function
types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
   g_list_foreach(rows, (GFunc)g_free, NULL);
                        ^
2018-11-03 08:39:05 +00:00
Vincent Sanders
8687265c9a fix stupid typo in previous commit 2018-10-08 12:33:58 +01:00
Vincent Sanders
a8ee1c2d63 explicitly check for null string before compare 2018-10-06 15:44:17 +01:00
Vincent Sanders
83512a6ff5 squash clang warning about increased alignment requirements. 2018-09-26 17:21:05 +01:00
Vincent Sanders
2596331640 seems freebsd needs _XOPEN_SOURCE for math.h macros to be defined 2018-09-06 12:10:38 +01:00
Vincent Sanders
6ce6b62099 stop defining _XOPEN_SOURCE
This is necessary with some libc as it overrides _POSIX_C_SOURCE
and removes definitions of scandir etc.
2018-09-06 11:33:02 +01:00
Vincent Sanders
9142bab736 remove a warning on openbsd 2018-08-28 22:17:02 +01:00
Michael Drake
d54e0461ad GTK: Remove logging during window resize. 2018-08-27 20:04:24 +01:00
Vincent Sanders
487309a1e6 fixup usage of gvalue init macro 2018-08-26 11:22:20 +01:00
Vincent Sanders
4765c68a15 fix gtk 3 deprication warnings 2018-08-26 10:12:35 +01:00
Vincent Sanders
f4620a3f68 remove depricated gtk 3 interfaces 2018-08-24 20:25:14 +01:00
Vincent Sanders
2f663987c5 do not use strlen as a variable name 2018-08-21 14:59:29 +01:00
Vincent Sanders
650ac58604 Improve GTK login dialog 2018-08-19 23:16:16 +01:00
Michael Drake
6144993c8a GTK: Update for new HTTP auth API. 2018-08-15 07:19:58 +01:00
Michael Drake
09b015bf11 Browser: Rename function to access bw URL. 2018-07-23 10:47:26 +01:00
Michael Drake
8332bf6b2a Plotters: Remove width param from path plotter.
We now use the stroke_width in the plot_style.
2018-05-23 13:48:17 +01:00
Michael Drake
66493421e6 Plotters: Change stroke width in the plot_style_t to fixed point. 2018-05-23 13:04:19 +01:00
Michael Drake
a58d97a41a Plotters: Add plot_style_fixed type, and use for font size. 2018-05-23 11:48:35 +01:00
Vincent Sanders
0569fbf170 change tab next and back accelerators
fixes bug #2581
2018-04-22 14:03:18 +01:00
Vincent Sanders
d196ea7795 fix gtk accelerator loading 2018-04-22 14:03:18 +01:00
Vincent Sanders
cfa5856eea Initial conversion of GTK accelerators to separate config file 2018-04-22 14:03:18 +01:00
Daniel Silverstone
c1e30c0c3a Initial shuffle of stuff out of !NetSurf 2018-04-22 10:41:55 +01:00
Vincent Sanders
eba0fd70eb clean up toolbar configuration to be slightly less buggy 2017-12-10 22:57:06 +00:00
Michael Drake
e418416c77 Squash remaining GCC7 -Wimplicit-fallthrough warnings. 2017-10-23 09:46:02 +01:00
Daniel Silverstone
d3493b138f Initialise DPI earlier so that it works for treeviews 2017-09-19 15:13:51 +01:00
Daniel Silverstone
8123e65351 Finalise nslog layer properly in closedown 2017-09-10 14:22:05 +01:00
Michael Drake
d17b710fa9 GTK: Corewindow: Fix modifier keys on mouse click.
Modifiers were getting unset for the click (release) events.
2017-09-09 14:38:49 +01:00
Vincent Sanders
f89f7192ef fix size+t formatting in logging 2017-09-07 21:08:02 +01:00
Vincent Sanders
3a633acc3f fixup junk comment close 2017-09-07 18:33:07 +01:00
Vincent Sanders
5d6f189d8b Fixup everything the semantic patch missed 2017-09-07 18:12:09 +01:00
Vincent Sanders
b9bdc279f2 Update scheduler logging to use catagory 2017-09-07 15:30:08 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Vincent Sanders
5a40e94df6 remove unecessary textarea include 2017-08-27 15:46:00 +01:00
Michael Drake
dfa1e0bcd3 GTK: Ensure core windows are fully initialised. 2017-06-11 10:05:59 +01:00
Michael Drake
92ecc77768 Core window: Ensure all front ends initialise drag_status. 2017-06-10 18:10:07 +01:00
Michael Drake
50371731e3 GTK: Ensure drag status is initialised in core windows. 2017-06-10 17:55:18 +01:00
Michael Drake
b0358727d9 GTK: Don't need to treat local history specially now. 2017-06-10 11:53:58 +01:00
Vincent Sanders
2bec7f113c fix gtk bitmap doccomment to be truthful 2017-06-09 22:01:05 +01:00
Vincent Sanders
703427a486 Update documentation removing junk and moving to markdown for most text files 2017-06-09 17:30:00 +01:00
Vincent Sanders
3c1a6f9c52 update gtk frontend for corewindow API change 2017-05-23 09:45:37 +01:00
Vincent Sanders
87ed0904e0 Merge branch 'vince/scroll-api' 2017-04-26 22:28:41 +01:00
Vincent Sanders
0f039b4421 Update GTK frontend for set_scroll API change 2017-04-26 22:24:57 +01:00
Michael Drake
4b76d2096d GTK: Optimise tiled bitmap plotting, and scaled bitmap rendering.
We now let Cairo deal with the tiling.  Also we don't keep cached
scaled bitmaps any more.  The speedup for small bitmap tile sizes
is huge.
2017-04-26 12:38:04 +01:00