Commit Graph

480 Commits

Author SHA1 Message Date
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
Rob Kendrick 21da4f5bdf Call the toolbar sensitivity update function when changing sensitivity of toolbar buttons when throbber stops
svn path=/trunk/netsurf/; revision=10179
2010-03-28 11:41:51 +00:00
Rob Kendrick 2d3ea6c278 Remove empty tab labels from glade files; removes GTK assertions on startup. Also fix popup menu stock items to be ones that actually exist.
svn path=/trunk/netsurf/; revision=10178
2010-03-28 11:26:08 +00:00
Rob Kendrick 759a482c8f slight, marginal and trifling nsgtk beautification
svn path=/trunk/netsurf/; revision=10157
2010-03-27 11:31:03 +00:00
Chris Young 033b5d815a Move code which extracts the filename from a given path into frontend.
svn path=/trunk/netsurf/; revision=10139
2010-03-21 13:32:59 +00:00
James Bursa 3129db31c3 Clean up, rename, and split out some new functions. Remove unused code.
svn path=/trunk/netsurf/; revision=10130
2010-03-15 00:42:48 +00:00
Michael Drake b263a70bb4 Remove html favicon of unknown origin and use a NetSurf logo when there's no other favicon.
svn path=/trunk/netsurf/; revision=10042
2010-02-13 20:39:07 +00:00
Rob Kendrick ec402980b9 Change previous commit to more sensible values
svn path=/trunk/netsurf/; revision=9971
2010-02-12 13:14:12 +00:00
Michael Drake 14a1574e20 More normal default window size for nsgtk.
svn path=/trunk/netsurf/; revision=9970
2010-02-12 13:01:48 +00:00
John Mark Bell 2c8452b961 Remove unused variable
svn path=/trunk/netsurf/; revision=9891
2010-01-24 15:45:34 +00:00
Vincent Sanders 17096ef891 Somewhat rationalise GTK throbber initialisation
svn path=/trunk/netsurf/; revision=9872
2010-01-24 01:46:17 +00:00
John Mark Bell c9ce56727e Add missing include
svn path=/trunk/netsurf/; revision=9861
2010-01-21 23:58:05 +00:00
John Mark Bell 7e81850643 Add missing include
svn path=/trunk/netsurf/; revision=9860
2010-01-21 23:56:25 +00:00
John Mark Bell 5b0ad574b6 Fix compilation when BMP/PNG/GIF support is disabled.
svn path=/trunk/netsurf/; revision=9858
2010-01-21 23:48:34 +00:00
Vincent Sanders e01d93f344 Refactor main into the frontends
remove unused embedded global

svn path=/trunk/netsurf/; revision=9851
2010-01-20 20:32:30 +00:00
John Mark Bell 11582027d1 Make nsgtk_throbber_initialise_from_png() actually check for allocation failure.
Make nsgtk_throbber_initialise_from_gif() actually stand a chance of working.

svn path=/trunk/netsurf/; revision=9747
2009-12-20 12:05:12 +00:00
John Mark Bell d64f5102eb themesfolder is on stack. Do not free().
svn path=/trunk/netsurf/; revision=9739
2009-12-18 20:25:11 +00:00
John Mark Bell fcffcf4b18 Ensure scaffolding object exists before using it
svn path=/trunk/netsurf/; revision=9738
2009-12-18 20:21:13 +00:00
John Mark Bell b75b2ae8bb Merge r9731:HEAD from branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9737
2009-12-18 20:15:50 +00:00
John Mark Bell 355799ce0b Merge branches/MarkieB/gtkmain to trunk.
svn path=/trunk/netsurf/; revision=9729
2009-12-17 23:55:02 +00:00
Michael Drake 13afa0ff4c Merge Paul Blokus' selectscroll branch. Adds core select menu widget for forms and core scrollbar widget.
svn path=/trunk/netsurf/; revision=9289
2009-08-14 10:37:33 +00:00
Michael Drake 7b565d8bc5 Fix menu pointer's hotspot.
svn path=/trunk/netsurf/; revision=9153
2009-08-10 14:43:31 +00:00
John Mark Bell 7ee7281fcd Fix font config stuff
svn path=/trunk/netsurf/; revision=8765
2009-07-24 00:43:02 +00:00
John Mark Bell ddeadd1c02 Merge LibCSS port to trunk.
svn path=/trunk/netsurf/; revision=8752
2009-07-23 23:05:34 +00:00
John Mark Bell 6e13c2fb0a Scale font sizes, for better accuracy.
svn path=/trunk/netsurf/; revision=8657
2009-07-21 16:55:35 +00:00
John Mark Bell 2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Michael Drake 8365d46eb7 Rename TRANSPARENT to NS_TRANSPARENT to avoid clash on Windows. By MarkieB.
svn path=/trunk/netsurf/; revision=8513
2009-07-14 10:57:07 +00:00
Vincent Sanders 86232d72a6 next round of plotter refactor
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Vincent Sanders 680298e61c plotters line refactor
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
John Mark Bell 9e5f6510ec Tweak dot/dash patterns.
svn path=/trunk/netsurf/; revision=8416
2009-07-09 12:13:01 +00:00
Vincent Sanders f9ecd56f62 ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Vincent Sanders 0ade453958 Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
John Mark Bell 7792d81e85 Give input focus to drawing area on click. (credit: Paul Blokus)
svn path=/trunk/netsurf/; revision=8277
2009-07-02 23:22:24 +00:00
Vincent Sanders 1165edf662 remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
Vincent Sanders aa26843411 Improve bitmap plotter API
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
John Mark Bell ca96353d9f Merged revisions 7764-7977,7979-8058 via svnmerge from
svn://svn.netsurf-browser.org/branches/paulblokus/textinput

........
  r7769 | paulblokus | 2009-06-11 22:26:16 +0100 (Thu, 11 Jun 2009) | 4 lines
  
  replace global history window with an empty window for future tests
  add the necessary files
  first lines ported
........
  r7771 | paulblokus | 2009-06-11 23:51:46 +0100 (Thu, 11 Jun 2009) | 1 line
  
  more functions
........
  r7772 | paulblokus | 2009-06-12 02:07:36 +0100 (Fri, 12 Jun 2009) | 1 line
  
  redraw working
........
  r7777 | paulblokus | 2009-06-12 11:35:45 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  plotter fix
  make use of the provided clipping rectangle
........
  r7781 | paulblokus | 2009-06-12 16:26:51 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  callbacks for taxtarea to request a [caret]redraw
  basic caret handling drawing
........
  r7782 | paulblokus | 2009-06-12 22:36:50 +0100 (Fri, 12 Jun 2009) | 1 line
  
  single character insertion
........
  r7783 | paulblokus | 2009-06-12 22:41:37 +0100 (Fri, 12 Jun 2009) | 1 line
  
  single character insertion
........
  r7784 | paulblokus | 2009-06-12 23:55:40 +0100 (Fri, 12 Jun 2009) | 3 lines
  
  fixed caret clipping
  arrows, delete and backspace
........
  r7812 | paulblokus | 2009-06-16 14:55:41 +0100 (Tue, 16 Jun 2009) | 1 line
  
  remove bug causing NS hang on \n in textarea
........
  r7816 | paulblokus | 2009-06-16 16:29:48 +0100 (Tue, 16 Jun 2009) | 1 line
  
  Enter, Home, End keys
........
  r7817 | paulblokus | 2009-06-16 16:56:16 +0100 (Tue, 16 Jun 2009) | 1 line
  
  Ctrl + Home/End
........
  r7818 | paulblokus | 2009-06-16 17:16:51 +0100 (Tue, 16 Jun 2009) | 1 line
  
  redraw caret only on caret moves
........
  r7821 | paulblokus | 2009-06-16 20:18:30 +0100 (Tue, 16 Jun 2009) | 1 line
  
  line end/start delete
........
  r7822 | paulblokus | 2009-06-16 23:43:42 +0100 (Tue, 16 Jun 2009) | 1 line
  
  selection drawing + select all
........
  r7823 | paulblokus | 2009-06-17 02:31:07 +0100 (Wed, 17 Jun 2009) | 3 lines
  
  auto scrolling on caret moves
  clear selection
........
  r7845 | paulblokus | 2009-06-18 17:35:03 +0100 (Thu, 18 Jun 2009) | 1 line
  
  page up/down
........
  r7846 | paulblokus | 2009-06-18 17:38:45 +0100 (Thu, 18 Jun 2009) | 1 line
  
   remove unnecessary fix
........
  r7847 | paulblokus | 2009-06-18 18:00:16 +0100 (Thu, 18 Jun 2009) | 1 line
  
  clipping fixes
........
  r7849 | paulblokus | 2009-06-18 18:21:02 +0100 (Thu, 18 Jun 2009) | 1 line
  
  scroll fix
........
  r7850 | paulblokus | 2009-06-18 18:45:13 +0100 (Thu, 18 Jun 2009) | 1 line
  
  simplified redraw request logic
........
  r7855 | paulblokus | 2009-06-18 19:56:24 +0100 (Thu, 18 Jun 2009) | 1 line
  
  front end passing mouse events
........
  r7858 | paulblokus | 2009-06-18 22:18:39 +0100 (Thu, 18 Jun 2009) | 3 lines
  
  drag selection
  bug fixes
........
  r7860 | paulblokus | 2009-06-18 23:32:39 +0100 (Thu, 18 Jun 2009) | 3 lines
  
  take selection into account on keypress of different types
  a few bugs fixed
........
  r7876 | paulblokus | 2009-06-19 13:43:07 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  pango nsfont_split fix
  a few textarea fixes
........
  r7879 | paulblokus | 2009-06-19 17:33:10 +0100 (Fri, 19 Jun 2009) | 4 lines
  
  newline handling seems to work this way
  clear selection on mouse click
  more bug fixes
........
  r7880 | paulblokus | 2009-06-19 18:16:27 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  no caret option
  selection follows drag
........
  r7883 | paulblokus | 2009-06-19 19:08:44 +0100 (Fri, 19 Jun 2009) | 3 lines
  
  o width selection bug fix
  caret at correct side of drag selection
........
  r7918 | paulblokus | 2009-06-22 21:01:28 +0100 (Mon, 22 Jun 2009) | 3 lines
  
  fix caret positioning at line end
  CR removal in input methods
........
  r7919 | paulblokus | 2009-06-22 21:34:39 +0100 (Mon, 22 Jun 2009) | 1 line
  
  fix crash on 0 length text
........
  r7926 | paulblokus | 2009-06-23 09:53:56 +0100 (Tue, 23 Jun 2009) | 3 lines
  
  change LF into spaces for single line widget
  text normalisation at one place
........
  r7931 | paulblokus | 2009-06-23 10:51:25 +0100 (Tue, 23 Jun 2009) | 1 line
  
  cleanup
........
  r7933 | paulblokus | 2009-06-23 11:17:22 +0100 (Tue, 23 Jun 2009) | 1 line
  
  fix selection draw
........
  r7935 | paulblokus | 2009-06-23 11:41:30 +0100 (Tue, 23 Jun 2009) | 1 line
  
  guard readonly
........
  r7942 | paulblokus | 2009-06-24 08:19:39 +0100 (Wed, 24 Jun 2009) | 1 line
  
  applied changes suggested by jmb
........
  r7943 | paulblokus | 2009-06-24 09:04:49 +0100 (Wed, 24 Jun 2009) | 1 line
  
  little fixes
........
  r7945 | paulblokus | 2009-06-24 12:50:14 +0100 (Wed, 24 Jun 2009) | 1 line
  
  correct line length and wrapping
........
  r7947 | paulblokus | 2009-06-24 14:32:36 +0100 (Wed, 24 Jun 2009) | 3 lines
  
  fixed page up/down broken in last commit
  changed logic for caret positioning on soft breaks
........
  r7949 | paulblokus | 2009-06-24 16:31:42 +0100 (Wed, 24 Jun 2009) | 1 line
  
  remove temporary/test code
........
  r7975 | paulblokus | 2009-06-25 16:00:46 +0100 (Thu, 25 Jun 2009) | 1 line
  
  changes suggested by jmb
........
  r7976 | paulblokus | 2009-06-25 16:33:23 +0100 (Thu, 25 Jun 2009) | 1 line
  
  added ro_ prefix to RISC OS textarea code
........

svn path=/trunk/netsurf/; revision=8060
2009-06-27 13:59:25 +00:00
John Mark Bell 243c1ba03f Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
svn path=/trunk/netsurf/; revision=7593
2009-05-28 10:39:53 +00:00
John Mark Bell 9582b087c7 Rework GTK options code to be less bug ridden. This fixes a bunch of buffer overflows and memory leaks. Additionally, don't bother calculating the default toolbar button type here -- it will already be determined the first time that a browser window is opened (i.e. before the preferences dialog can be opened, anyway).
Remove loads of trailing whitespace from every line in the gtk languages file.

svn path=/trunk/netsurf/; revision=7370
2009-04-29 15:24:00 +00:00
Rob Kendrick efa447f3bc Update GTK about box to be more accurate
svn path=/trunk/netsurf/; revision=7258
2009-04-23 12:13:45 +00:00
John Mark Bell b815973c15 Simplify handling of tab switching. Now only has one event entry point, rather than two (and is thus less confusing).
Update window titlebar on tab switch (based on r7234)

svn path=/trunk/netsurf/; revision=7235
2009-04-22 12:32:55 +00:00
John Mark Bell e7df2e1fb8 Some kind of documentation of option_button_type. Ideally, we'll be using an enum here in future.
svn path=/trunk/netsurf/; revision=7148
2009-04-21 10:47:24 +00:00
Rob Kendrick b648e36dc1 Fixed pitch font for GTK source view
svn path=/trunk/netsurf/; revision=7147
2009-04-21 10:38:57 +00:00
John Mark Bell aef5c88839 Much tidying, error checking, implementation hiding, etc.
svn path=/trunk/netsurf/; revision=7145
2009-04-21 10:24:30 +00:00
John Mark Bell 03c1e930be Reflow to the entire widget width, rather than leaving a 2px border on the right side. I've no idea why this was needed, but it looks odd.
svn path=/trunk/netsurf/; revision=7142
2009-04-21 01:01:59 +00:00
Rob Kendrick fe86c4a618 Check in missing files from previous commit
svn path=/trunk/netsurf/; revision=7139
2009-04-20 22:13:59 +00:00
Rob Kendrick ec034af671 Apply contributions from Mark Benjamin and Chris Tarnowski, with some reworking from me. Beware; glade nastyness ahead.
svn path=/trunk/netsurf/; revision=7136
2009-04-20 20:31:13 +00:00
John Mark Bell daf7a52dd6 Hubbub is no longer optional.
Remove libxml2 parser binding.

svn path=/trunk/netsurf/; revision=7115
2009-04-17 00:54:27 +00:00
Daniel Silverstone 4411cc918d Update GTK tab opening to hopefully correctly render pages on open. (Mark Benjamin)
svn path=/trunk/netsurf/; revision=7055
2009-04-07 09:01:12 +00:00
John Mark Bell 2531079866 Revert r6973. Apparently, it causes loads of problems.
svn path=/trunk/netsurf/; revision=7047
2009-04-05 19:17:24 +00:00
John Mark Bell b230423267 Change URL bar contents when switching tabs in GTK frontend.
Remove fixed-size buffer from core URL string handling.

Credit: Mark Benjamin.

svn path=/trunk/netsurf/; revision=6998
2009-03-30 15:46:26 +00:00
John Mark Bell f5587d22a4 Squash warning
svn path=/trunk/netsurf/; revision=6986
2009-03-29 12:49:17 +00:00
Michael Drake 86ea073c40 Improve line plotter.
svn path=/trunk/netsurf/; revision=6949
2009-03-27 19:18:52 +00:00
John Mark Bell 58cd142338 Remember the scroll position in the history, so that it's maintained when going back. (credit: Paweł Blokus)
svn path=/trunk/netsurf/; revision=6793
2009-03-17 12:26:41 +00:00
John Mark Bell 07e1187b69 Add .spr -> image/x-riscos-sprite MIME mapping to GTK front end
Fix crash inducing bugs in nssprite.c

svn path=/trunk/netsurf/; revision=6743
2009-03-09 00:58:23 +00:00
Michael Drake b833e5a727 Log gtk gui_window_get_dimensions sizes.
svn path=/trunk/netsurf/; revision=6684
2009-03-03 19:26:58 +00:00
Rob Kendrick 5b53bb6baa Select the text in the URL bar on Ctrl-A if the widget has the focus, rather
than the document text. 
Thanks to Paweł Blokus <pblokus@gmail.com> for the patch.

svn path=/trunk/netsurf/; revision=6659
2009-02-28 20:02:09 +00:00
John Mark Bell 847b776285 Purge NETSURF_USE_SSL and WITH_SSL
svn path=/trunk/netsurf/; revision=6599
2009-02-22 15:07:50 +00:00
John Mark Bell de42425720 Remove misleading comment
svn path=/trunk/netsurf/; revision=6552
2009-02-17 23:50:40 +00:00
John Mark Bell ee986e1d0a Divorce PDF export and printing.
At some point, the RISC OS printing code should be ported to the core page-based output engine.

svn path=/trunk/netsurf/; revision=6544
2009-02-17 16:37:51 +00:00
John Mark Bell f41d666fe1 Squash warnings from GTK.
Rework export_pdf and print menu handlers to not leak memory, actually check return values, and stop processing in those cases.
Many pedantic whitespace changes.
Remove 3 spurious labels from the tab notebook in netsurf.glade.
Make PDF export menu entry sensitive by default.
Make Print preview menu entry insensitive, as it's unsupported.

svn path=/trunk/netsurf/; revision=6543
2009-02-17 15:08:22 +00:00
John Mark Bell 22d8b8e512 Squash warning when built without WITH_SSL
svn path=/trunk/netsurf/; revision=6540
2009-02-15 23:21:53 +00:00
Vincent Sanders cbf07e1bc3 make schedule_run return if it has active jobs to schedule
svn path=/trunk/netsurf/; revision=6447
2009-02-11 22:33:55 +00:00
John Tytgat 403376e890 - desktop/save_pdf/pdf_plotters.c:
- Have a set of libharu gstate update related wrapper routines which minimizes the gstate updates in the PDF file 
resulting in smaller PDF file size.
  - Colour values were wrongly scaled (was dividing by 256 instead of by 255).
  - pdf_plot_polygon(): last (closing) lineto wasn't needed, a fill operation will do that automatically.
  - pdf_scale/pdf_set_scale(): moved to desktop/save_pdf/font_haru.c as pdf_text_scale/haru_nsfont_set_scale().
- desktop/save_pdf/pdf_plotters.c(pdf_set_scale): moved to desktop/save_pdf/font_haru.h as haru_nsfont_set_scale().
- desktop/save_pdf/font_haru.c:
  - moved pdf_scale variable from pdf_plotters.c to here.
  - haru_nsfont_set_scale(): was pdf_set_scale from pdf_plotters.c
  - haru_nsfont_apply_style(): always calculate font size and pass it on to caller when requested.
- desktop/save_pdf/font_haru.h:
  - haru_nsfont_set_scale(): declare.
  - haru_nsfont_apply_style(): add font size parameter
- gtk/gtk_scaffolding.c(MENUHANDLER(export_pdf)): call haru_nsfont_set_scale() instead of pdf_set_scale().

svn path=/trunk/netsurf/; revision=6363
2009-02-05 02:31:19 +00:00