Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/40076ea422458fde1799f...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/40076ea422458fde1799fd3...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/40076ea422458fde1799fd383...
The branch, master has been updated
via 40076ea422458fde1799fd383b475586ee112c3f (commit)
from 912b9de92808c43a78680d41bba1ad982e120d86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commitdiff/40076ea422458fde179...
commit 40076ea422458fde1799fd383b475586ee112c3f
Author: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Allow the size of the web search gadget to be user-set
diff --git a/amiga/dist/NetSurf.guide b/amiga/dist/NetSurf.guide
index f1536a2..8759b2b 100755
--- a/amiga/dist/NetSurf.guide
+++ b/amiga/dist/NetSurf.guide
@@ -48,6 +48,7 @@ There are a couple of Amiga-specific options which can only be changed
directly
@{b}redraw_tile_size_x@{ub}/@{b}redraw_tile_size_y@{ub} Specify the size of the
off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables
tiling (will use a bitmap at least the size of the screen NetSurf is running on)
@{b}font_antialiasing@{ub} Switch text anti-aliasing on or off. Defaults to on in
true-colour modes, but text rendering performance can be improved by setting to 0.
@{b}window_simple_refresh@{ub} If set to 1, NetSurf will use SimpleRefresh rather than
SmartRefresh windows. These have slower redraw but use less memory. Note that this
setting has no noticeable effect if compositing is enabled. Defaults to 0 (SmartRefresh)
+@{b}web_search_width@{ub} Defaults to 0. Larger values will increase the size of the web
search gadget next to the URL bar.
@{b}dithering_quality@{ub} Specify the dithering quality from all values supported by
picture.datatype. Currently these are 0=None, 1=Normal, 2=High quality. Other values are
undefined. This is only used when NetSurf is running in palette-mapped mode.
@{b}mask_alpha@{ub} Threshold to use when determining which alpha values to convert to
full transparency (0 - 255, where 255 will convert even opaque pixels to transparent).
Defaults to 50 (0x32). This is only used in palette-mapped modes where alpha blending is
not currently supported.
diff --git a/amiga/gui.c b/amiga/gui.c
index c71afde..a1a9468 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3064,7 +3064,7 @@ struct gui_window *gui_create_browser_window(struct browser_window
*bw,
GA_HintInfo, g->shared->helphints[GID_SEARCHSTRING],
StringEnd,
LayoutEnd,
- CHILD_WeightedWidth, 0,
+ CHILD_WeightedWidth, nsoption_int(web_search_width),
LAYOUT_AddChild, g->shared->objects[GID_THROBBER] = SpaceObject,
GA_ID,GID_THROBBER,
SPACE_MinWidth,throbber_width,
diff --git a/amiga/options.h b/amiga/options.h
index 5e47778..957f389 100644
--- a/amiga/options.h
+++ b/amiga/options.h
@@ -74,6 +74,7 @@
int cookies_window_ypos; \
int cookies_window_xsize; \
int cookies_window_ysize; \
+ int web_search_width; \
int cairo_renderer; \
bool direct_render; \
bool window_simple_refresh; \
@@ -136,6 +137,7 @@
.cookies_window_ypos = 0, \
.cookies_window_xsize = 0, \
.cookies_window_ysize = 0, \
+ .web_search_width = 0, \
.cairo_renderer = 0, \
.direct_render = false, \
.window_simple_refresh = false, \
@@ -197,6 +199,7 @@
{ "cookies_window_ypos", OPTION_INTEGER, &nsoptions.cookies_window_ypos},
\
{ "cookies_window_xsize", OPTION_INTEGER, &nsoptions.cookies_window_xsize},
\
{ "cookies_window_ysize", OPTION_INTEGER, &nsoptions.cookies_window_ysize},
\
+{ "web_search_width", OPTION_INTEGER, &nsoptions.web_search_width}, \
{ "cairo_renderer", OPTION_INTEGER, &nsoptions.cairo_renderer}, \
{ "direct_render", OPTION_BOOL, &nsoptions.direct_render}, \
{ "window_simple_refresh", OPTION_BOOL, &nsoptions.window_simple_refresh},
\
-----------------------------------------------------------------------
Summary of changes:
amiga/dist/NetSurf.guide | 1 +
amiga/gui.c | 2 +-
amiga/options.h | 3 +++
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/amiga/dist/NetSurf.guide b/amiga/dist/NetSurf.guide
index f1536a2..8759b2b 100755
--- a/amiga/dist/NetSurf.guide
+++ b/amiga/dist/NetSurf.guide
@@ -48,6 +48,7 @@ There are a couple of Amiga-specific options which can only be changed
directly
@{b}redraw_tile_size_x@{ub}/@{b}redraw_tile_size_y@{ub} Specify the size of the
off-screen bitmap. Higher will speed up redraws at the expense of memory. 0 disables
tiling (will use a bitmap at least the size of the screen NetSurf is running on)
@{b}font_antialiasing@{ub} Switch text anti-aliasing on or off. Defaults to on in
true-colour modes, but text rendering performance can be improved by setting to 0.
@{b}window_simple_refresh@{ub} If set to 1, NetSurf will use SimpleRefresh rather than
SmartRefresh windows. These have slower redraw but use less memory. Note that this
setting has no noticeable effect if compositing is enabled. Defaults to 0 (SmartRefresh)
+@{b}web_search_width@{ub} Defaults to 0. Larger values will increase the size of the web
search gadget next to the URL bar.
@{b}dithering_quality@{ub} Specify the dithering quality from all values supported by
picture.datatype. Currently these are 0=None, 1=Normal, 2=High quality. Other values are
undefined. This is only used when NetSurf is running in palette-mapped mode.
@{b}mask_alpha@{ub} Threshold to use when determining which alpha values to convert to
full transparency (0 - 255, where 255 will convert even opaque pixels to transparent).
Defaults to 50 (0x32). This is only used in palette-mapped modes where alpha blending is
not currently supported.
diff --git a/amiga/gui.c b/amiga/gui.c
index c71afde..a1a9468 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3064,7 +3064,7 @@ struct gui_window *gui_create_browser_window(struct browser_window
*bw,
GA_HintInfo, g->shared->helphints[GID_SEARCHSTRING],
StringEnd,
LayoutEnd,
- CHILD_WeightedWidth, 0,
+ CHILD_WeightedWidth, nsoption_int(web_search_width),
LAYOUT_AddChild, g->shared->objects[GID_THROBBER] = SpaceObject,
GA_ID,GID_THROBBER,
SPACE_MinWidth,throbber_width,
diff --git a/amiga/options.h b/amiga/options.h
index 5e47778..957f389 100644
--- a/amiga/options.h
+++ b/amiga/options.h
@@ -74,6 +74,7 @@
int cookies_window_ypos; \
int cookies_window_xsize; \
int cookies_window_ysize; \
+ int web_search_width; \
int cairo_renderer; \
bool direct_render; \
bool window_simple_refresh; \
@@ -136,6 +137,7 @@
.cookies_window_ypos = 0, \
.cookies_window_xsize = 0, \
.cookies_window_ysize = 0, \
+ .web_search_width = 0, \
.cairo_renderer = 0, \
.direct_render = false, \
.window_simple_refresh = false, \
@@ -197,6 +199,7 @@
{ "cookies_window_ypos", OPTION_INTEGER, &nsoptions.cookies_window_ypos},
\
{ "cookies_window_xsize", OPTION_INTEGER, &nsoptions.cookies_window_xsize},
\
{ "cookies_window_ysize", OPTION_INTEGER, &nsoptions.cookies_window_ysize},
\
+{ "web_search_width", OPTION_INTEGER, &nsoptions.web_search_width}, \
{ "cairo_renderer", OPTION_INTEGER, &nsoptions.cairo_renderer}, \
{ "direct_render", OPTION_BOOL, &nsoptions.direct_render}, \
{ "window_simple_refresh", OPTION_BOOL, &nsoptions.window_simple_refresh},
\
--
NetSurf Browser