Commit Graph

62 Commits

Author SHA1 Message Date
Vincent Sanders 8e986ae214 ensure menu resources are released
this ensures all the menu resources are freed when the containing
 window receives the destroy signal. Previously these resources
 were leaked.
2019-10-10 18:04:32 +01:00
Vincent Sanders ca20dab9cf fix toolbar visibility checkboxes initial state 2019-09-22 11:58:23 +01:00
Vincent Sanders 6c470679ee fix menu signal handler prototype 2019-09-21 10:53:41 +01:00
Vincent Sanders 9d3112a643 persist the menu and tool bar visibility as user settings 2019-09-21 10:53:41 +01:00
Vincent Sanders a013a24d5f clean up find in page to operate nicely 2019-09-21 10:53:41 +01:00
Vincent Sanders a20fe23ce6 move search toolbar to be per tab and move implementation to one place 2019-09-21 10:53:41 +01:00
Vincent Sanders 11aa682154 construct all toolbar items from data table
This changes toolbar item constuction to use toolbar_items.h
  instead of explicit macros.

Additionally all remenants of old stock item themeing are done
  away with and GTK icon names are used instead.
2019-09-21 10:53:41 +01:00
Vincent Sanders 608cc3cbbf make handling of non browser window containing tabs reasonable 2019-09-21 10:53:41 +01:00
Vincent Sanders c7c89daff3 allow toolbar customisation to open a tab 2019-09-21 10:53:41 +01:00
Vincent Sanders 46e1116aaa change toolbar customization to tab approach 2019-09-21 10:53:41 +01:00
Vincent Sanders 65d5161558 remove unsused junk gtk_history_window structure and functions 2019-09-21 10:53:41 +01:00
Vincent Sanders 635be1dfb8 make toolbar and menubar hiding work appropriately 2019-09-21 10:53:41 +01:00
Vincent Sanders bcb2b7a2c4 simplify toolbar items macros 2019-09-21 10:53:41 +01:00
Vincent Sanders 1119707410 add toolbar customize to main and burger menu 2019-09-21 10:53:41 +01:00
Vincent Sanders 5f5b94c2ae simplify menu initialisation macros 2019-09-21 10:53:41 +01:00
Vincent Sanders 061499eef6 set menu activation handler using toolbar items 2019-09-21 10:53:41 +01:00
Vincent Sanders 64b2f355dc use toolbar_items to generate more boilerplate code through macros 2019-09-21 10:53:41 +01:00
Vincent Sanders ec62f346e1 fix toolbar property update 2019-09-21 10:53:41 +01:00
Vincent Sanders f6a669464f split burger menu from popup context menu 2019-09-21 10:53:41 +01:00
Vincent Sanders 85b65921ed cleanup scaffolding a bit 2019-09-21 10:53:41 +01:00
Vincent Sanders 2e8861dc05 make web search icon setting work properly 2019-09-21 10:53:41 +01:00
Vincent Sanders e84990bc89 make popup context menu work on toolbar 2019-09-21 10:53:41 +01:00
Vincent Sanders e36338b617 complete toolbar button click handler implementation 2019-09-21 10:53:41 +01:00
Vincent Sanders 08d7c55cc5 another five handlers and fix menu sensitivity on throbber state change 2019-09-21 10:53:41 +01:00
Vincent Sanders 45bd456cd8 add five more handlers 2019-09-21 10:53:41 +01:00
Vincent Sanders 7f115dc926 implemented another seven signal handlers 2019-09-21 10:53:41 +01:00
Vincent Sanders 8f0c0734ea implement more toolbar item handlers and make menus call them 2019-09-21 10:53:41 +01:00
Vincent Sanders 8eebe695f0 allow menu activation to use the toolbar button implementations 2019-09-21 10:53:41 +01:00
Vincent Sanders b24b28e40e clean up some more handler code and remove button push 2019-09-21 10:53:41 +01:00
Vincent Sanders ff64341ed3 make menu sensitivity work
what remains is interfaces to make the toolbar appropriately sensative
2019-09-21 10:53:41 +01:00
Vincent Sanders c297101c3a make menus work again 2019-09-21 10:53:41 +01:00
Vincent Sanders 305190fe73 implement several more button press handlers 2019-09-21 10:53:41 +01:00
Vincent Sanders 869c16dae6 cleanup toolbar warnings 2019-09-21 10:53:41 +01:00
Vincent Sanders bd90138b48 make url entry repond to navigate and update signals 2019-09-21 10:53:41 +01:00
Vincent Sanders dd767acfee make toolbar url entry display url 2019-09-21 10:53:41 +01:00
Vincent Sanders 02c75d0790 working throbber 2019-09-21 10:53:41 +01:00
Vincent Sanders 89fb88f6de move toolbar to be in tab contents 2019-09-21 10:53:41 +01:00
Vincent Sanders 65d169da10 get the code to at least compile again. toolbar is completely broken 2019-09-21 10:53:41 +01:00
Vincent Sanders 1fc51d1f44 moved most of init to toolbar.c 2019-09-21 10:53:41 +01:00
Vincent Sanders c0e27bd0da access gtk throbber frames through an interface
This changes the gtk throbber frames to be accessed through an API
  This removes teh nsgtk_throbber global and hides the implementation
  details from the rest of the code.
2019-08-18 14:41:31 +01:00
Vincent Sanders 01f3879b64 Move favicon from url entry widget to notebook tab label 2019-08-15 23:02:04 +01:00
Vincent Sanders 641f5fb072 make use of improved browser_window_set_scale API in frontends 2019-08-03 15:53:07 +01:00
Vincent Sanders d4c01894c2 change browser_window_get_features to use unscaled coordinates 2019-08-03 14:29:06 +01:00
Vincent Sanders 0a8ed41a1a change browser_window_mouse_click to use unscaled coordinates
this means frontends no longer need to scale mouse click events thus
simplifying their implementation.
2019-08-03 14:29:05 +01:00
Vincent Sanders 4765c68a15 fix gtk 3 deprication warnings 2018-08-26 10:12:35 +01:00
Michael Drake 09b015bf11 Browser: Rename function to access bw URL. 2018-07-23 10:47:26 +01:00
Vincent Sanders eba0fd70eb clean up toolbar configuration to be slightly less buggy 2017-12-10 22:57:06 +00:00
Vincent Sanders 75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
Vincent Sanders 1820bb7e63 fix remaining doccomment errors 2017-02-22 08:30:58 +00:00
Vincent Sanders 8ddb9df377 update gtk frontend to use corewindow local history 2017-02-17 09:06:32 +00:00