Root/gjay/patches/0014-Use-file_depth-rather-than-file_iter_depth-in-explor.patch

Source at commit 1b3135c created 9 years 10 days ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1From 5edd4a7b95c5be05ffe72ae6452e94ffa14bc5e5 Mon Sep 17 00:00:00 2001
2From: Joshua Judson Rosen <rozzin@geekspace.com>
3Date: Thu, 12 May 2011 22:18:15 -0400
4Subject: [PATCH 14/17] Use file_depth() rather than file_iter_depth() in explore_files_depth_distance().
5 The numbers end up the same here, but file_depth() is usable even when running without the GUI (e.g.: "gjay --playlist").
6
7---
8 ui_explore_view.c | 6 +++---
9 1 files changed, 3 insertions(+), 3 deletions(-)
10
11diff --git a/ui_explore_view.c b/ui_explore_view.c
12index 413675d..d99eab2 100644
13--- a/ui_explore_view.c
14+++ b/ui_explore_view.c
15@@ -658,9 +658,9 @@ gint explore_files_depth_distance ( char * file1,
16         k--;
17     /* Replace slash with null termination */
18     buffer[k] = '\0';
19- f1 = file_iter_depth(file1);
20- f2 = file_iter_depth(file2);
21- shared = file_iter_depth(buffer) + 1;
22+ f1 = file_depth(file1);
23+ f2 = file_depth(file2);
24+ shared = file_depth(buffer) + 1;
25 
26     if (f1 && f2 && shared)
27         return ((f1 - shared) + (f2 - shared));
28--
291.7.2.5
30
31

Archive Download this file



interactive