From 0b64df140c87c81d5046c0a97b5a655ca7af170b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 16 Oct 2014 09:55:01 +0100 Subject: Update amiga frontend for split operation table header changes --- amiga/gui_options.c | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'amiga/gui_options.c') diff --git a/amiga/gui_options.c b/amiga/gui_options.c index 50f7b7cfd..04beb81af 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -29,18 +29,6 @@ #include #include -#include "amiga/object.h" -#include "amiga/font.h" -#include "amiga/gui.h" -#include "amiga/gui_options.h" -#include "amiga/help.h" -#include "amiga/theme.h" -#include "amiga/utf8.h" -#include "utils/messages.h" -#include "desktop/browser_private.h" -#include "utils/nsoption.h" -#include "desktop/searchweb.h" - #include #include #include @@ -69,6 +57,20 @@ #include #include +#include "utils/messages.h" +#include "utils/nsoption.h" +#include "desktop/browser_private.h" +#include "desktop/searchweb.h" +#include "desktop/gui_window.h" + +#include "amiga/object.h" +#include "amiga/font.h" +#include "amiga/gui.h" +#include "amiga/gui_options.h" +#include "amiga/help.h" +#include "amiga/theme.h" +#include "amiga/utf8.h" + enum { GID_OPTS_MAIN = GID_MAIN, @@ -218,7 +220,7 @@ CONST_STRPTR fontopts[6]; CONST_STRPTR gadlab[OPTS_LAST]; struct List *websearch_list; -void ami_gui_opts_setup(void) +static void ami_gui_opts_setup(void) { tabs[0] = (char *)ami_utf8_easy((char *)messages_get("con_general")); tabs[1] = (char *)ami_utf8_easy((char *)messages_get("Display")); @@ -372,7 +374,7 @@ void ami_gui_opts_setup(void) fontopts[5] = NULL; } -void ami_gui_opts_free(void) +static void ami_gui_opts_free(void) { int i; @@ -1530,7 +1532,7 @@ void ami_gui_opts_open(void) ami_utf8_free(homepage_url_lc); } -void ami_gui_opts_use(bool save) +static void ami_gui_opts_use(bool save) { ULONG data, id = 0; float animspeed; @@ -1701,31 +1703,31 @@ void ami_gui_opts_use(bool save) GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_SANS],(ULONG *)&data); tattr = (struct TextAttr *)data; - if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0'; + if((dot = strrchr(tattr->ta_Name,'.'))) *dot = '\0'; nsoption_set_charp(font_sans, (char *)strdup((char *)tattr->ta_Name)); GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_SERIF],(ULONG *)&data); tattr = (struct TextAttr *)data; - if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0'; + if((dot = strrchr(tattr->ta_Name,'.'))) *dot = '\0'; nsoption_set_charp(font_serif, (char *)strdup((char *)tattr->ta_Name)); GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_MONO],(ULONG *)&data); tattr = (struct TextAttr *)data; - if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0'; + if((dot = strrchr(tattr->ta_Name,'.'))) *dot = '\0'; nsoption_set_charp(font_mono, (char *)strdup((char *)tattr->ta_Name)); GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_CURSIVE],(ULONG *)&data); tattr = (struct TextAttr *)data; - if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0'; + if((dot = strrchr(tattr->ta_Name,'.'))) *dot = '\0'; nsoption_set_charp(font_cursive, (char *)strdup((char *)tattr->ta_Name)); GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_FANTASY],(ULONG *)&data); tattr = (struct TextAttr *)data; - if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0'; + if((dot = strrchr(tattr->ta_Name,'.'))) *dot = '\0'; nsoption_set_charp(font_fantasy, (char *)strdup((char *)tattr->ta_Name)); GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_FONT_DEFAULT],(ULONG *)&nsoption_int(font_default)); @@ -2148,7 +2150,7 @@ void ami_gui_opts_websearch_free(struct List *websearchlist) do { nnode = GetSucc(node); Remove(node); - } while(node = nnode); + } while((node = nnode)); FreeVec(websearchlist); } -- cgit v1.2.3