# HG changeset patch # User ib # Date 1310047997 0 # Node ID 5860cfaff0a4e2af09dc22baeca25b476c309612 # Parent e5959dcf8fe6b2c48e321f43620a7ffdc5b2ffb2 Cosmetic: Rename URLList urlList. diff -r e5959dcf8fe6 -r 5860cfaff0a4 gui/cfg.c --- a/gui/cfg.c Thu Jul 07 14:09:57 2011 +0000 +++ b/gui/cfg.c Thu Jul 07 14:13:17 2011 +0000 @@ -421,11 +421,11 @@ f = fopen(cfg, "wt+"); if (f) { - while (URLList) { - if (URLList->url) - fprintf(f, "%s\n", URLList->url); + while (urlList) { + if (urlList->url) + fprintf(f, "%s\n", urlList->url); - URLList = URLList->next; + urlList = urlList->next; } fclose(f); diff -r e5959dcf8fe6 -r 5860cfaff0a4 gui/ui/gtk/url.c --- a/gui/ui/gtk/url.c Thu Jul 07 14:09:57 2011 +0000 +++ b/gui/ui/gtk/url.c Thu Jul 07 14:13:17 2011 +0000 @@ -47,9 +47,9 @@ if ( URL ) gtkActive( URL ); else URL=create_URL(); - if ( URLList ) + if ( urlList ) { - urlItem * item = URLList; + urlItem * item = urlList; g_list_free( URLComboEntrys ); URLComboEntrys=NULL; while( item ) diff -r e5959dcf8fe6 -r 5860cfaff0a4 gui/util/list.c --- a/gui/util/list.c Thu Jul 07 14:09:57 2011 +0000 +++ b/gui/util/list.c Thu Jul 07 14:13:17 2011 +0000 @@ -26,7 +26,7 @@ plItem *plCurrent; plItem *plLastPlayed; -urlItem *URLList; +urlItem *urlList; void *listSet(int cmd, void *vparam) { @@ -167,8 +167,8 @@ // handle url case gtkAddURLItem: - if (URLList) { - urlItem *next_url = URLList; + if (urlList) { + urlItem *next_url = urlList; is_added = 0; while (next_url->next) { @@ -184,7 +184,7 @@ next_url->next = url_item; } else { url_item->next = NULL; - URLList = url_item; + urlList = url_item; } return NULL; } diff -r e5959dcf8fe6 -r 5860cfaff0a4 gui/util/list.h --- a/gui/util/list.h Thu Jul 07 14:09:57 2011 +0000 +++ b/gui/util/list.h Thu Jul 07 14:13:17 2011 +0000 @@ -44,7 +44,7 @@ extern plItem *plCurrent; extern plItem *plLastPlayed; -extern urlItem *URLList; +extern urlItem *urlList; void gaddlist(char ***list, const char *entry); void greplace(char ***list, const char *search, const char *replace);