changeset 33748:5860cfaff0a4

Cosmetic: Rename URLList urlList.
author ib
date Thu, 07 Jul 2011 14:13:17 +0000
parents e5959dcf8fe6
children d8f49edf8f25
files gui/cfg.c gui/ui/gtk/url.c gui/util/list.c gui/util/list.h
diffstat 4 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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 )
--- 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;
     }
--- 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);