Commit Graph

442 Commits

Author SHA1 Message Date
Michael Drake
513793a060 Fix inventory file leafname.
svn path=/trunk/netsurf/; revision=10624
2010-07-09 21:36:55 +00:00
Chris Young
1510bbd3ad Check the last character for a path separator, rather than the NULL string termination.
svn path=/trunk/netsurf/; revision=10622
2010-07-09 19:55:13 +00:00
Chris Young
d6eb28d5de Replace unnecessarily complicated path concatenation with something simpler and
easily adaptable to different platform path structures.

svn path=/trunk/netsurf/; revision=10621
2010-07-09 19:45:44 +00:00
John Mark Bell
2d4222def8 Fix gtk compat layer to not segfault on old versions of GTK.
svn path=/trunk/netsurf/; revision=10593
2010-07-03 23:44:20 +00:00
John Mark Bell
a327c4e624 Avoid potential use of NULL pointer.
svn path=/trunk/netsurf/; revision=10588
2010-06-29 06:05:54 +00:00
Michael Drake
b010a25771 + Refactor input handling from browser window code into content
handlers.
+ Disentangle all box tree manipulation from browser window
  code and put it where it belongs.
+ Move other content specific and other irrelevant code from
  browser window handling to appropriate places.
+ Put mouse state enum in new mouse header, since it's not just
  used by browser window code, and it is used by treeview
  windows on the treeview branch.

svn path=/trunk/netsurf/; revision=10561
2010-06-04 09:35:08 +00:00
Daniel Silverstone
5e887908b3 Consolidate several 'myrealloc' functions into ns_realloc, rename one which *is* different, thereby eliminating the word 'myrealloc' from the NS codebase
svn path=/trunk/netsurf/; revision=10530
2010-04-30 16:06:03 +00:00
John Mark Bell
cf73e479e5 Add missing includes
svn path=/trunk/netsurf/; revision=10525
2010-04-30 07:02:19 +00:00
John Mark Bell
000e6ad3de It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by the C standard (whereas realloc(NULL, size) --> malloc(size) is).
Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free).

svn path=/trunk/netsurf/; revision=10524
2010-04-30 07:00:58 +00:00
Vincent Sanders
2fd1476f8c The schedule_run function is only called by the frontends so remove it from the core header and add its definition to the frontend headers.
Alter the framebuffer schedule_run to return the time untill the next event.


svn path=/trunk/netsurf/; revision=10512
2010-04-28 22:39:37 +00:00
Vincent Sanders
03bb3e8636 remove _GNU_SOURCE define from everywhere.
strndup is not standard so provide an implementation.

svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
Vincent Sanders
448b0275ae Fix file: handling on risc os, gtk, windows and framebuffer frontends
svn path=/trunk/netsurf/; revision=10419
2010-04-16 23:56:53 +00:00
John Mark Bell
ad8d0b3350 Handle llcache queries (GTK only for now)
svn path=/trunk/netsurf/; revision=10403
2010-04-14 23:03:49 +00:00
Daniel Silverstone
613fa0213a Simplify gtk scheduler and clean up valgrind-exposed error
svn path=/trunk/netsurf/; revision=10397
2010-04-14 09:59:23 +00:00
Rob Kendrick
f75d630d25 Hack workaround for broken libcurls who obey ALL_PROXY for file: URLs. See comment.
svn path=/trunk/netsurf/; revision=10394
2010-04-13 18:41:19 +00:00
Rob Kendrick
39209643d0 Add gtk_compat.c, which provides implementations of newer GTK functions that we require. This is needed because some macros we were using have been deprecated and replaced with functions, and we build without deprecated features due to it spewing warnings everywhere.
svn path=/trunk/netsurf/; revision=10392
2010-04-13 17:13:52 +00:00
Rob Kendrick
9bb36f143e Revert previous two changes, as it breaks far too recent versions of GTK.
svn path=/trunk/netsurf/; revision=10390
2010-04-13 11:22:35 +00:00
Rob Kendrick
693b39f1f1 GTK 2.20 removes some widget property access macros that were deprecated in 2.18. Change uses to new function calls. Allows nsgtk to be built on Ubuntu 10.04.
svn path=/trunk/netsurf/; revision=10388
2010-04-13 11:12:28 +00:00
Daniel Silverstone
2a0b0dab5b Suppress issues with < 1x1 (i)frames for now in GTK frontend
svn path=/trunk/netsurf/; revision=10383
2010-04-12 09:48:36 +00:00
John Mark Bell
83944723c0 Now that theme_install owns hlcache handle, ensure we clean it up.
Additionally, complete port from struct content to hlcache_handle.

svn path=/trunk/netsurf/; revision=10378
2010-04-11 23:08:54 +00:00
Michael Drake
580fa084de Fix window updates when main window is scrolled.
svn path=/trunk/netsurf/; revision=10347
2010-04-11 12:13:53 +00:00
Michael Drake
0b0044979c Fix warnings about scroll and value possibly getting used uninitialised.
svn path=/trunk/netsurf/; revision=10328
2010-04-09 09:02:05 +00:00
Michael Drake
dc3ce6372f Try to handle nonsense status bar width option settings. This is probably only mildly better than just leaving people with almost no status bar by default.
svn path=/trunk/netsurf/; revision=10326
2010-04-08 21:27:55 +00:00
Michael Drake
169e8e3f91 Status bar width now set in proportion to actual window width. Correctly retain status bar proportion as window is resized.
svn path=/trunk/netsurf/; revision=10325
2010-04-08 20:17:57 +00:00
Michael Drake
ee12fb211f Slightly clearer comment.
svn path=/trunk/netsurf/; revision=10324
2010-04-08 18:55:38 +00:00
Michael Drake
ce57df5bd0 Remove min status bar width limitation. Set initial status bar width when gui_window is created. Note the TODOs in gtk_window.c gui_create_browser_window().
svn path=/trunk/netsurf/; revision=10323
2010-04-08 18:47:51 +00:00
Michael Drake
c1d0f32875 Turn on smooth scaling by default, since it doesn't make much difference to preformance and looks better. Align columns in options table.
svn path=/trunk/netsurf/; revision=10321
2010-04-08 17:37:08 +00:00
Michael Drake
9d38a66299 Make scaled bitmap plotting much faster by only scaling the portion of the bitmap we need to plot.
svn path=/trunk/netsurf/; revision=10320
2010-04-08 17:07:49 +00:00
Michael Drake
3b5dbecaf4 Increase scroll increment.
svn path=/trunk/netsurf/; revision=10317
2010-04-08 14:59:13 +00:00
Daniel Silverstone
2dc7d37a43 GTK's source suggests scroll wheels generally get twice as much scrollypower as arrow keys
svn path=/trunk/netsurf/; revision=10316
2010-04-08 14:49:36 +00:00
Daniel Silverstone
1bbba38519 Ensure the h/v scrollbars default to 16px step increment
svn path=/trunk/netsurf/; revision=10315
2010-04-08 14:45:24 +00:00
Daniel Silverstone
2e3d7a2648 Add scroll event support
svn path=/trunk/netsurf/; revision=10314
2010-04-08 14:36:09 +00:00
Rob Kendrick
b4c3765e34 Pass an empty string as the label for the local history button. While the GTK docs say NULL is reasonable, it causes the ATK layer to produce runtime assertions.
svn path=/trunk/netsurf/; revision=10313
2010-04-08 14:28:04 +00:00
Daniel Silverstone
8b1cde1bb5 Some X servers set MOD2 for some reason. Limit arrow/pgup/down to 'not alt/control/shift'
svn path=/trunk/netsurf/; revision=10310
2010-04-08 14:07:41 +00:00
Daniel Silverstone
8f1dec6f1d Add missing setting which was preventing gtk tabs from working
svn path=/trunk/netsurf/; revision=10306
2010-04-08 13:29:04 +00:00
Michael Drake
19a38aa18e Manually clip for scaled plots too. Doesn't make much difference to performance because the creation of scaled bitmaps is so slow.
svn path=/trunk/netsurf/; revision=10305
2010-04-08 13:22:32 +00:00
Michael Drake
51b27bdf54 Manually clip bitmap area to be plotted. This speeds up rendering considerably. Currently only done for unscaled images.
svn path=/trunk/netsurf/; revision=10297
2010-04-08 11:20:16 +00:00
James Bursa
92bf8b1a7b Partly fix tab closing.
svn path=/trunk/netsurf/; revision=10294
2010-04-07 22:28:19 +00:00
James Bursa
01087a552c Put status bar and horizontal scroll bar next to each other. Each tab now contains a table containing a layout, status label, and scroll bars. The GtkLayout replaces ScrolledWindow->Fixed->DrawingArea.
svn path=/trunk/netsurf/; revision=10277
2010-04-07 16:52:45 +00:00
James Bursa
4746cb7fe1 Make struct browser_mouse a part of gui_window instead of a malloced pointer. It was never used separately or outside gtk_window.c or freed.
svn path=/trunk/netsurf/; revision=10271
2010-04-07 13:53:43 +00:00
John Mark Bell
2748fe4f64 Make downloads work again.
svn path=/trunk/netsurf/; revision=10243
2010-04-05 21:35:38 +00:00
John Mark Bell
89daef932a Fix compilation
svn path=/trunk/netsurf/; revision=10242
2010-04-05 12:02:49 +00:00
Vincent Sanders
95e4a737de rationalise the usage of the file scheme
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +00:00
Vincent Sanders
e00fb7bd2d second pass at startup refactor removing the gui_init callback
svn path=/trunk/netsurf/; revision=10205
2010-03-29 20:03:44 +00:00
Vincent Sanders
7e67527267 first part of initialisation refactor move gui_init2 into frontends
svn path=/trunk/netsurf/; revision=10202
2010-03-29 16:59:30 +00:00
Michael Drake
aafc98465b Remove unnecessary assignment.
svn path=/trunk/netsurf/; revision=10193
2010-03-28 19:26:47 +00:00
Michael Drake
dd2b9e4b19 Pass mouse buttons to core correctly.
svn path=/trunk/netsurf/; revision=10192
2010-03-28 19:21:47 +00:00
Daniel Silverstone
5d074feaf2 Remove redundant fetch_poll call
svn path=/trunk/netsurf/; revision=10185
2010-03-28 15:38:01 +00:00
Rob Kendrick
40da15205e Adjust alignment and padding of toolbar. All this toolbar code needs throwing away.
svn path=/trunk/netsurf/; revision=10182
2010-03-28 14:48:32 +00:00
Daniel Silverstone
270ef59a98 Merge jmb/new-cache; r=dsilvers,rs=vince
svn path=/trunk/netsurf/; revision=10180
2010-03-28 12:56:39 +00:00