summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-12-27 11:11:41 +0000
committerVincent Sanders <vince@kyllikki.org>2014-12-27 11:11:41 +0000
commit871c14693e084d4b6ce6ac1786dd08a124185bb6 (patch)
tree81fef711c80369dc37f9b7141beb56895cfd466a
parent6fa388d862dc5394744e884ab168c70a8918dfbc (diff)
downloadnetsurf-871c14693e084d4b6ce6ac1786dd08a124185bb6.tar.gz
netsurf-871c14693e084d4b6ce6ac1786dd08a124185bb6.tar.bz2
change the framebuffer frontend way of disabling the toolbar
This changes the toolbar disabling from the empty string (which is impossible to configure) to the q (for quiet) specifier
-rw-r--r--Docs/USING-Framebuffer18
-rw-r--r--framebuffer/gui.c3
2 files changed, 13 insertions, 8 deletions
diff --git a/Docs/USING-Framebuffer b/Docs/USING-Framebuffer
index d09274d88..3af8f983f 100644
--- a/Docs/USING-Framebuffer
+++ b/Docs/USING-Framebuffer
@@ -96,18 +96,22 @@ Configuring
The layout of the toolbar, layout uses a string to define buttons
type and position each character adds an element to the toolbar:
- b - back
- l - local history
- f - forward
- s - stop
- r - refresh
+ b - Move back in history
+ l - Display the local history
+ f - Move forward in history
+ s - stop fetching content
+ r - refresh content
u - url bar expands to fit remaining space
t - throbber/activity indicator
c - close the current window
+ q - Disable The toolbar altogether
+
+ If the option contains only the q specifier the toolbar is
+ disabled altogether (this was previously the empty string but that
+ was difficult to configure correctly).
The default layout is "blfsrutc" there should be no more than a
- single url bar entry. If the option is set to the empty string (no
- spaces permitted) the toolbar is disabled altogether.
+ single url bar entry.
fb_osk
Whether the on screen keyboard should be enabled for input.
diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 986c2aee6..9f6a798be 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -1188,7 +1188,8 @@ create_toolbar(struct gui_window *gw,
itmtype = toolbar_layout;
- if (*itmtype == 0) {
+ /* check for the toolbar being disabled */
+ if ((*itmtype == 0) || (*itmtype == 'q')) {
return NULL;
}