Commit Graph

357 Commits

Author SHA1 Message Date
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
John Tytgat fbf6d4cd41 - Constify parameters of struct plotter_table::polygon and struct plotter_table::path
- riscos/save_draw.c(ro_save_draw_plotters): Make it static.
- desktop/save_pdf/pdf_plotters.c(pdf_plot_path): fix broken implementation (coordinates path were wrong, no clip/text mode update, transformation matrix was overwritten); only update fill and/or 
stroke color when fill and/or stroke is done.
  (pdf_begin): disable compression when PDF_DEBUG is set

svn path=/trunk/netsurf/; revision=6361
2009-02-03 01:27:54 +00:00
John Tytgat 6dcef96aca Add sensitive property for PDF export like for the other export entries, this disables the PDF export menu entry when there is no content.
svn path=/trunk/netsurf/; revision=6344
2009-02-01 22:31:30 +00:00
John Tytgat aa61544828 strlen() on constant string can be replaced by sizeof()-1
svn path=/trunk/netsurf/; revision=6333
2009-02-01 13:59:35 +00:00
Sean Fox b132fba399 Right-clicking a page now removes the browser caret as well, but isn't properly implemented; see todo.
svn path=/trunk/netsurf/; revision=6308
2009-01-30 22:38:39 +00:00
Sean Fox 851111e929 Properly show the context menu separator.
svn path=/trunk/netsurf/; revision=6307
2009-01-30 22:00:10 +00:00
Sean Fox 4789d3c09d Clicking in the draw area now deselects the URL bar.
svn path=/trunk/netsurf/; revision=6306
2009-01-30 21:59:01 +00:00
Sean Fox 0de8393358 Save page support on the context menu.
svn path=/trunk/netsurf/; revision=6305
2009-01-30 21:23:10 +00:00
Sean Fox ab3da70659 Squash some memory leaks.
svn path=/trunk/netsurf/; revision=6290
2009-01-29 08:13:28 +00:00
John Mark Bell 8d76373d23 Forward declare gui_window
svn path=/trunk/netsurf/; revision=6085
2009-01-16 14:30:20 +00:00
Rob Kendrick 3d260f6e75 Fix warnings and formatting
svn path=/trunk/netsurf/; revision=5956
2009-01-02 15:10:33 +00:00
Daniel Silverstone cc4ff67438 Remove unnecessary storage of page number in tab add
svn path=/trunk/netsurf/; revision=5955
2009-01-02 14:48:29 +00:00
Daniel Silverstone 70e1c9c7bf Silence lack of return value check warning on fgets()
svn path=/trunk/netsurf/; revision=5954
2009-01-02 14:46:54 +00:00
Daniel Silverstone ebfb26038f Silence format-string warning
svn path=/trunk/netsurf/; revision=5953
2009-01-02 14:44:09 +00:00
Daniel Silverstone 3321a81f71 Fix unchecked result warnings for realpath
svn path=/trunk/netsurf/; revision=5952
2009-01-02 14:41:53 +00:00
Daniel Silverstone a804727385 A bit of tidying of the GTK options dialog code. Still not ideal, still not warning free.
svn path=/trunk/netsurf/; revision=5951
2009-01-02 14:36:02 +00:00
Michael Drake 0bdff38416 Move tab opening logic to same place as new window opening. Make option for "Tabbed browsing", which is enabled by default. Someone who knows how to work glade could add the "Tabbed browsing" option to the choices dialogue. When a link is opened in a new tab, don't change tab.
svn path=/trunk/netsurf/; revision=5816
2008-11-29 00:24:09 +00:00
Rob Kendrick 33dc55587e Ctrl+W now closes just the current tab, and Ctrl+Shift+W closes the window. Added menu item to do this, too.
svn path=/trunk/netsurf/; revision=5593
2008-10-18 14:37:29 +00:00
Daniel Silverstone d9f9bda135 Ensure that unset string options do not crash when you try and set them
svn path=/trunk/netsurf/; revision=5591
2008-10-18 09:38:23 +00:00
Rob Kendrick 2d7516b398 Fix memory leak and warning
svn path=/trunk/netsurf/; revision=5574
2008-10-14 14:58:52 +00:00
Michael Drake 2e584e3b04 Style guide formatting.
svn path=/trunk/netsurf/; revision=5535
2008-10-11 15:12:42 +00:00
Michael Drake 56f8f275fd Fix close icon size on tabs. Thanks to Christian Dywan (kalikiana).
svn path=/trunk/netsurf/; revision=5534
2008-10-11 13:52:03 +00:00
Daniel Silverstone 88b8fdb221 Remove redundant function, and guard print/export-pdf against lack of haru
svn path=/trunk/netsurf/; revision=5526
2008-10-10 09:33:39 +00:00
Daniel Silverstone f02cf9a5b5 Fix two warnings which only show when not using haru or hubbub
svn path=/trunk/netsurf/; revision=5525
2008-10-10 09:30:17 +00:00