diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-27 14:18:01 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-28 14:16:11 +0100 |
commit | 63d7247a9cace6cc729441508c0cfd82f043ff4d (patch) | |
tree | a8c599193d94b3a0267c84b9b2d1ad32c08c0505 /amiga | |
parent | 4ae69da5ea4eb2791af6a09edc6dfaedada6d325 (diff) | |
download | netsurf-63d7247a9cace6cc729441508c0cfd82f043ff4d.tar.gz netsurf-63d7247a9cace6cc729441508c0cfd82f043ff4d.tar.bz2 |
fix mismatched option name and variable names
block_ads should be block_advertisments to match option name
toolbar_status_width should be toolbar_status_size to match option name
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/gui.c | 2 | ||||
-rwxr-xr-x | amiga/gui_options.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 8342b8dc7..dcbf90b51 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3673,7 +3673,7 @@ ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *size1, ULO available_width = gwin->win->Width - scrn->WBorLeft - sz; - gad1percent = nsoption_int(toolbar_status_width) / 10000.0; + gad1percent = nsoption_int(toolbar_status_size) / 10000.0; *size1 = (ULONG)(available_width * gad1percent); *size2 = (ULONG)(available_width * (1 - gad1percent)); diff --git a/amiga/gui_options.c b/amiga/gui_options.c index bd37acd1e..102036ded 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -579,7 +579,7 @@ void ami_gui_opts_open(void) GA_ID, GID_OPTS_HIDEADS, GA_RelVerify, TRUE, GA_Text, gadlab[GID_OPTS_HIDEADS], - GA_Selected, nsoption_bool(block_ads), + GA_Selected, nsoption_bool(block_advertisements), CheckBoxEnd, LayoutEnd, // content blocking LAYOUT_AddChild,VGroupObject, @@ -1531,9 +1531,9 @@ void ami_gui_opts_use(bool save) GetAttr(GA_Selected,gow->objects[GID_OPTS_HIDEADS],(ULONG *)&data); if (data) { - nsoption_set_bool(block_ads, true); + nsoption_set_bool(block_advertisements, true); } else { - nsoption_set_bool(block_ads, false); + nsoption_set_bool(block_advertisements, false); } GetAttr(INTEGER_Number,gow->objects[GID_OPTS_HISTORY],(ULONG *)&nsoption_int(expire_url)); |