diff gui/ui/actions.c @ 33742:e1539e14d60f

Move purely list related parts of gtkSet() from interface.c to list.c. Rename that part listSet() and remove now unused parameter fparam. Remove needless casts in listSet() calls. Remove needless explicit initialization of global list variables. Additionally, remove disabled debug code list().
author ib
date Thu, 07 Jul 2011 11:50:32 +0000
parents 2c02269701bd
children cee9987bc81d
line wrap: on
line diff
--- a/gui/ui/actions.c	Thu Jul 07 10:37:58 2011 +0000
+++ b/gui/ui/actions.c	Thu Jul 07 11:50:32 2011 +0000
@@ -25,6 +25,7 @@
 #include "gui/interface.h"
 #include "gui/skin/font.h"
 #include "gui/skin/skin.h"
+#include "gui/util/list.h"
 #include "gui/util/mem.h"
 #include "gui/util/string.h"
 #include "gui/wm/wsxdnd.h"
@@ -287,7 +288,7 @@
 
     default:
 
-        curr = gtkSet(gtkGetCurrPlItem, 0, NULL);
+        curr = listSet(gtkGetCurrPlItem, NULL);
 
         if (curr) {
             uiSetFileName(curr->path, curr->name, STREAMTYPE_FILE);
@@ -341,7 +342,7 @@
 
     default:
 
-        prev = gtkSet(gtkGetPrevPlItem, 0, NULL);
+        prev = listSet(gtkGetPrevPlItem, NULL);
 
         if (prev) {
             uiSetFileName(prev->path, prev->name, STREAMTYPE_FILE);
@@ -401,7 +402,7 @@
 
     default:
 
-        next = gtkSet(gtkGetNextPlItem, 0, NULL);
+        next = listSet(gtkGetNextPlItem, NULL);
 
         if (next) {
             uiSetFileName(next->path, next->name, STREAMTYPE_FILE);