Commit Graph

91 Commits

Author SHA1 Message Date
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
Vincent Sanders 7ff51a93d5 gtk context menu cleanups
svn path=/trunk/netsurf/; revision=11480
2011-01-25 09:19:47 +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
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
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
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
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
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
Vincent Sanders 95e4a737de rationalise the usage of the file scheme
svn path=/trunk/netsurf/; revision=10221
2010-03-31 13:59:57 +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
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 c9ce56727e Add missing include
svn path=/trunk/netsurf/; revision=9861
2010-01-21 23:58:05 +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
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
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 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 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 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 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 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
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 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 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 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 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
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 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
Mike Lester 74baa6336c Fixed most of the scaffolding warnings.
svn path=/trunk/netsurf/; revision=5524
2008-10-09 23:19:50 +00:00
Rob Kendrick 4b2802c546 Whole bunch of warning fixes in GTK
svn path=/trunk/netsurf/; revision=5521
2008-10-09 23:07:38 +00:00