From 63d7247a9cace6cc729441508c0cfd82f043ff4d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 27 May 2013 14:18:01 +0100 Subject: 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 --- amiga/gui.c | 2 +- amiga/gui_options.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga') 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)); -- cgit v1.2.3