John Mark Bell
de688b59e1
Fix text selection
...
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
Vincent Sanders
9660442e92
remove obsolete, unused gui_window_redraw API
...
svn path=/trunk/netsurf/; revision=11870
2011-03-01 14:31:54 +00:00
John Mark Bell
b193361d8f
Make resource paths global static, as it's only used in here
...
svn path=/trunk/netsurf/; revision=11777
2011-02-23 22:58:21 +00:00
Vincent Sanders
0231675abf
add resource handling
...
move gtk and framebuffer to use generic resource handling
svn path=/trunk/netsurf/; revision=11772
2011-02-23 22:27:55 +00:00
John Mark Bell
5c2d8c35f7
Hide implementation detail
...
svn path=/trunk/netsurf/; revision=11769
2011-02-23 08:23:02 +00:00
John Mark Bell
ec1b92cf24
Obtain download filename from the core
...
svn path=/trunk/netsurf/; revision=11768
2011-02-23 08:19:10 +00:00
Michael Drake
8813181cea
Use core's thumbnail_redraw().
...
svn path=/trunk/netsurf/; revision=11717
2011-02-19 22:24:36 +00:00
Michael Drake
a66575dfeb
Remove thumbnail_create() from browser.h. Make RO front end use the core thumbnail_redraw function. Make other front ends include the right header for thumbnail_create().
...
svn path=/trunk/netsurf/; revision=11716
2011-02-19 22:17:54 +00:00
Michael Drake
8912285839
Comment rationale for render buffer dimensions.
...
svn path=/trunk/netsurf/; revision=11699
2011-02-16 14:35:48 +00:00
Michael Drake
082b128106
Remove legacy logging.
...
svn path=/trunk/netsurf/; revision=11698
2011-02-16 14:14:00 +00:00
Michael Drake
120005e04b
Various gtk thumbnailing fixes. Don't make intermediate buffer bigger than it needs to be. Don't pass clip rect that's larger than render area. Don't plot blank background before setting the clip rect. Scale initial content render appropriately. Simplify and fix scale calc for thumbnail resampling.
...
svn path=/trunk/netsurf/; revision=11697
2011-02-16 13:52:29 +00:00
Vincent Sanders
fa98e3d76a
add about: fetcher
...
rename fetchers to be more sensible
svn path=/trunk/netsurf/; revision=11692
2011-02-15 23:18:10 +00:00
Michael Drake
9665415428
Add "const".
...
svn path=/trunk/netsurf/; revision=11684
2011-02-14 22:08:21 +00:00
Michael Drake
94e7b44ebc
Pass clip rect to clip plotters as struct. Simplify clip rect handling in debug window code. Pass clip rect to select menu as struct.
...
svn path=/trunk/netsurf/; revision=11683
2011-02-14 22:05:39 +00:00
Michael Drake
5cefc9584a
Pass clip rect to browser_window_redraw as pointer.
...
svn path=/trunk/netsurf/; revision=11672
2011-02-13 23:04:26 +00:00
Michael Drake
fe7921a387
Pass clip rect as struct through content_redraw api. Update the front ends to use this. Note only RO build tested.
...
svn path=/trunk/netsurf/; revision=11670
2011-02-13 22:25:11 +00:00
Michael Drake
fedcbf6656
Pass clip rect to browser_window_redraw as struct.
...
svn path=/trunk/netsurf/; revision=11648
2011-02-11 19:36:33 +00:00
Vincent Sanders
9a183018ea
improve browser_window_redraw width and height handling
...
svn path=/trunk/netsurf/; revision=11642
2011-02-11 00:14:22 +00:00
Vincent Sanders
2a8e8a5cf1
add browser_window_redraw() method to make content_redraw calls from frontends common RISC OS, atari, amiga and beos have not been updated
...
svn path=/trunk/netsurf/; revision=11640
2011-02-10 22:35:41 +00:00
John Mark Bell
86c2948eb4
Fix copying text/plain to clipboard
...
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00
Vincent Sanders
42990ed9ec
commit a neatness and comment cleanup in the gtk window code
...
svn path=/trunk/netsurf/; revision=11632
2011-02-08 23:40:14 +00:00
Vincent Sanders
726881c2ad
gtk can have *only* a single accelerator group attached or it goes bang
...
svn path=/trunk/netsurf/; revision=11598
2011-02-01 23:11:29 +00:00
Vincent Sanders
fbb1139214
add default system colour handlers to each frontend
...
svn path=/trunk/netsurf/; revision=11530
2011-01-30 13:40:47 +00:00
Vincent Sanders
42f89d4e0b
fixup gtk source file names
...
svn path=/trunk/netsurf/; revision=11529
2011-01-29 23:40:22 +00:00
Vincent Sanders
acc2c341bd
Make GTK popup menu generated like the menu bar menu
...
Clean up gtk scaffoling of some gsoc madness
fix tab opening from popup menu
Remove forward declarations and stop exporting the symbols for every event handler when they should be static
svn path=/trunk/netsurf/; revision=11514
2011-01-28 12:17:51 +00:00
Michael Drake
47c7051242
Change default favicon to content image.
...
svn path=/trunk/netsurf/; revision=11502
2011-01-26 18:36:48 +00:00
Vincent Sanders
7ff51a93d5
gtk context menu cleanups
...
svn path=/trunk/netsurf/; revision=11480
2011-01-25 09:19:47 +00:00
Daniel Silverstone
699f0cb344
Make the tree icon dir a non-option
...
svn path=/trunk/netsurf/; revision=11422
2011-01-20 14:05:13 +00:00
John Mark Bell
a145763c1d
Remove redundant computation.
...
Fix nsfont_split to actually conform to its API and not return split points in the middle of character byte sequences.
svn path=/trunk/netsurf/; revision=11264
2011-01-09 00:52:00 +00:00
Daniel Silverstone
1335ffd488
Make the default favicon a desaturated netsurf logo
...
svn path=/trunk/netsurf/; revision=11247
2011-01-07 14:16:33 +00:00
Daniel Silverstone
1ca13118a8
Ensure that if we're given no icon (or can't generate one) we default to the system-default favicon
...
svn path=/trunk/netsurf/; revision=11246
2011-01-07 14:13:40 +00:00
Daniel Silverstone
0bfafb51a6
New tabs should be (assuming not blank) my-home-page/netsurf-home-page rather than current URL
...
svn path=/trunk/netsurf/; revision=11245
2011-01-07 13:36:05 +00:00
Daniel Silverstone
29321bf3bd
Ensure we only update the favicon rendering when the icon being updated is the one in the active tab.
...
svn path=/trunk/netsurf/; revision=11244
2011-01-07 13:20:47 +00:00
Rob Kendrick
4f03905955
Move setting of the CSS DPI to before any treeviews are created, from when the first browser window is created.
...
svn path=/trunk/netsurf/; revision=11086
2010-12-17 13:07:38 +00:00
Michael Drake
3a2df10787
Make drags less jerky.
...
svn path=/trunk/netsurf/; revision=11077
2010-12-16 20:46:13 +00:00
Michael Drake
ad7283780d
When we get a motion notify event, only set of a drag in the core if the mouse has moved at least 5px from where it was pressed.
...
svn path=/trunk/netsurf/; revision=11076
2010-12-16 20:30:10 +00:00
Michael Drake
b067265bd3
Set last_{x|y} coords on press event so they are not used uninitialised in motion_notify_event.
...
svn path=/trunk/netsurf/; revision=11075
2010-12-16 20:13:44 +00:00
Michael Drake
1248c21a0e
A double click fires a click as well.
...
svn path=/trunk/netsurf/; revision=11070
2010-12-16 00:04:51 +00:00
Vincent Sanders
f6b0a33fd2
make the history, download, hotlist and cookies initialisation actually use the generic glade file finding code instead of their own thing and erroring out.
...
svn path=/trunk/netsurf/; revision=11055
2010-12-14 18:54:20 +00:00
Vincent Sanders
60c840628f
Small refactor to change icon names to being passed in from frontends instead of core treeview globals
...
svn path=/trunk/netsurf/; revision=11053
2010-12-14 00:18:24 +00:00
Rob Kendrick
d85dfd0e7c
Rationalise titles and styles of various GTK windows
...
svn path=/trunk/netsurf/; revision=11002
2010-12-05 15:03:53 +00:00
Rob Kendrick
5f2b953c5d
Give bookmarks window the focus when it is opened, remove utility style from window definition
...
svn path=/trunk/netsurf/; revision=10997
2010-12-05 11:43:50 +00:00
Rob Kendrick
78e5ba66f3
Remove a small amount of putridness from GTK full save implemention. Still needs to cope gracefully with the target directory already existing and offer to overwrite.
...
svn path=/trunk/netsurf/; revision=10995
2010-12-05 11:10:31 +00:00
Michael Drake
1a1bf3d2f0
Purge Aliases file stuff.
...
svn path=/trunk/netsurf/; revision=10982
2010-12-04 20:19:17 +00:00
Michael Drake
5eaeaed909
Remove Hubbub and Wapcaplet initialisation and finalisation.
...
svn path=/trunk/netsurf/; revision=10980
2010-12-04 20:14:33 +00:00
Vincent Sanders
802f58f10d
Futher simplification of the makefile
...
Use target makefiles to set build sources
svn path=/trunk/netsurf/; revision=10916
2010-10-29 00:54:27 +00:00
Vincent Sanders
72cf3adc78
Beginning of NetSurf build infrastructure cleanup
...
Provide makefile fragment for each target, isolates the target makefile changes into one place simplifying the top level makefile
svn path=/trunk/netsurf/; revision=10910
2010-10-27 18:39:24 +00:00
John Mark Bell
52f7f6a620
More GTK 2.22.0 support
...
svn path=/trunk/netsurf/; revision=10897
2010-10-23 14:12:33 +00:00
John Mark Bell
23df373b3b
Hackery to support GTK >= 2.21.6
...
svn path=/trunk/netsurf/; revision=10895
2010-10-23 13:53:11 +00:00
Chris Young
b0da0e5067
Fix WebP images for little-endian processors, and enable for gtk build.
...
Direct links work, images embedded in web pages are not showing up -
test page at http://www.unsatisfactorysoftware.co.uk/netsurf/webptest/
svn path=/trunk/netsurf/; revision=10886
2010-10-16 13:50:35 +00:00
John Mark Bell
6173bb0e6c
Merge treeview-redux to trunk
...
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Vincent Sanders
8747703583
move tabs menu somewhere less annoying
...
svn path=/trunk/netsurf/; revision=10797
2010-09-18 20:53:43 +00:00
Vincent Sanders
ae4339a970
Make the gtk menus fully translatable
...
clean up the macro madness a bit in gtk_menu.c
svn path=/trunk/netsurf/; revision=10796
2010-09-18 18:14:09 +00:00
Vincent Sanders
dd43ea0830
move the gtk menu creation into gtk_menu.c from gtk_scaffolding.c
...
This causes the menu creation to be concentrated in one place removing the need for numerous external linkages
svn path=/trunk/netsurf/; revision=10794
2010-09-17 23:18:01 +00:00
James Bursa
f3d867254c
Rename wndWarning to nsgtk_warning_window. Remove some unnecessary includes.
...
svn path=/trunk/netsurf/; revision=10764
2010-09-12 23:40:34 +00:00
Vincent Sanders
faca1687ce
hell with it, heres a version which should result in fewer portability complaints
...
svn path=/trunk/netsurf/; revision=10756
2010-09-11 18:47:36 +00:00
Vincent Sanders
bf11d92769
cause content_redraw() to be called with the width and height of the content instead of the window.
...
r=tlsa
svn path=/trunk/netsurf/; revision=10754
2010-09-10 13:35:54 +00:00
Vincent Sanders
43eb5cd640
Fix GTK redraw artifacts with non html content
...
svn path=/trunk/netsurf/; revision=10753
2010-09-10 13:08:05 +00:00
Michael Drake
9aa397ba68
Start bitmap opacity support in GTK front end. Still needs bitmap_test_opaque() implemented to be complete.
...
svn path=/trunk/netsurf/; revision=10706
2010-08-14 16:47:18 +00:00
Vincent Sanders
229393e22e
Add GTK language resources
...
svn path=/trunk/netsurf/; revision=10669
2010-07-28 15:26:02 +00:00
Vincent Sanders
bda534e12a
Clean up how GTK frontend finds resources
...
svn path=/trunk/netsurf/; revision=10668
2010-07-28 15:22:44 +00:00
Vincent Sanders
4bfd6ea6f0
remove symlinks to directories for Message translations
...
svn path=/trunk/netsurf/; revision=10667
2010-07-28 15:19:30 +00:00
Chris Young
004aee8281
Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
...
selections within NetSurf window to text fields (does not work across windows).
todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back
svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Vincent Sanders
27d5a1ff54
Make GTK frontend select apropriate messages file
...
svn path=/trunk/netsurf/; revision=10657
2010-07-22 23:01:13 +00:00
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