Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Hide <All tracks> and <Random>
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: Hide <All tracks> and <Random>  (Read 8955 times)

Offline Portasmith

  • Member
  • *
  • Posts: 13
Hide <All tracks> and <Random>
« on: April 14, 2009, 03:48:44 PM »
In the database view, is there any way to hide the <All tracks> and <Random> items?  I just want to see the available albums/tracks, etc.  I didn't see anything I could use in tagnavi.config

Thanks. :)

This is on a Sansa c250 with Rockbox r20705.

EDIT: Okay, I made myself a patch for this, which I compiled and works perfect.  Since this isn't something that all users would want (nor something that would make it into a release), should/can I post this to the patch tracker?  Or can I just post it here in the forums for if another user would want to remove this functionality?
« Last Edit: April 15, 2009, 02:48:55 AM by pinguen »
Logged

Offline evilnick

  • Rockbox Expert
  • Member
  • *
  • Posts: 431
Re: Hide <All tracks> and <Random>
« Reply #1 on: April 16, 2009, 10:09:52 AM »
I would say that if your fix is changing tagnavi.config then it'd be best to post that in the Wiki.
If it's a patch against svn code then post it in Patches.

The forums shouldn't be used for patches, as each thread will dip "under the radar" for most users after they're on page 2. So keeping this information in the Wiki is encouraged.
Logged

Offline Portasmith

  • Member
  • *
  • Posts: 13
Re: Hide <All tracks> and <Random>
« Reply #2 on: April 16, 2009, 11:39:19 AM »
Quote from: evilnick on April 16, 2009, 10:09:52 AM
If it's a patch against svn code then post it in Patches.
Yeah, it is.  I just wasn't sure if the patches system was only to be used for patching bugs, or if it could be used also for things like this (an optional customization)?  If it's the latter, then I'll post it. :)
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Hide <All tracks> and <Random>
« Reply #3 on: April 17, 2009, 06:23:28 PM »
there hasnt been much talk about requesting this feature, but depending how small it is, if those items can be disable with a tagnavi.config *something* then the patch might be a nice addition
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline ted209

  • Member
  • *
  • Posts: 5
Re: Hide <All tracks> and <Random>
« Reply #4 on: March 09, 2011, 05:37:45 PM »
I know this is an old post, but I want to do exactly this for my clip+.

I never use these menu items, so it's annoying having them right at the top of the database menu.

Any chance of posting the patch to the tracker?  Otherwise if you could post here what you did, then I can compile my own build.
Logged

Offline sach160

  • Member
  • *
  • Posts: 7
Re: Hide <All tracks> and <Random>
« Reply #5 on: March 27, 2011, 02:24:49 PM »
Hi I'd like to do this too but can't find it in the patches. Would be great if the poster could upload the patch...
Logged

Offline mirrors

  • Member
  • *
  • Posts: 7
Re: Hide <All tracks> and <Random>
« Reply #6 on: March 27, 2011, 03:03:34 PM »
I would love to know this as well.
Logged

Offline ted209

  • Member
  • *
  • Posts: 5
Re: Hide <All tracks> and <Random>
« Reply #7 on: March 28, 2011, 08:50:04 AM »
I worked it out in the end.  It's in the tagtree.c file, simply remove all of the following lines:

Code: [Select]
     if (tag != tag_title && tag != tag_filename)
     {
         if (offset == 0)
         {
             dptr->newtable = ALLSUBENTRIES;
             dptr->name = str(LANG_TAGNAVI_ALL_TRACKS);
             dptr++;
             current_entry_count++;
         }
         if (offset <= 1)
         {
             dptr->newtable = NAVIBROWSE;
             dptr->name = str(LANG_TAGNAVI_RANDOM);
             dptr->extraseek = -1;
             dptr++;
             current_entry_count++;
         }
         special_entry_count+=2;
     }
     
total_count += special_entry_count;

I made a patch for this, but am away from my computer for a week. I can post it at the weekend if people still want it.
Logged

Offline mirrors

  • Member
  • *
  • Posts: 7
Re: Hide <All tracks> and <Random>
« Reply #8 on: March 28, 2011, 01:47:13 PM »
Where exactly is this file located? I can't seem to find it...  ???
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Hide <All tracks> and <Random>
« Reply #9 on: March 28, 2011, 01:52:30 PM »
It's in the apps directory.

http://svn.rockbox.org/viewvc.cgi/trunk/apps/tagtree.c?revision=29387&view=markup



Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Hide <All tracks> and <Random>
« Reply #10 on: March 28, 2011, 03:52:58 PM »
Quote from: mirrors on March 28, 2011, 01:47:13 PM
Where exactly is this file located? I can't seem to find it...  ???

In the source code, you will need to edit it then build Rockbox.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline sach160

  • Member
  • *
  • Posts: 7
Re: Hide <All tracks> and <Random>
« Reply #11 on: March 29, 2011, 06:21:12 AM »
Woah - compiling source code looks tricky, I'm not that technically minded... I'm sure I'd mess it up. Is there no easier way of achieving this for the casual Rockbox user? :(
Logged

Offline ted209

  • Member
  • *
  • Posts: 5
Re: Hide <All tracks> and <Random>
« Reply #12 on: March 29, 2011, 06:37:24 AM »
You could try the build I made - it also has a few other patches included.  I've been using it for the last few days without issues:

http://www.anythingbutipod.com/forum/showpost.php?p=544846&postcount=8
Logged

Offline sach160

  • Member
  • *
  • Posts: 7
Re: Hide <All tracks> and <Random>
« Reply #13 on: March 29, 2011, 06:47:18 AM »
Many thanks Ted - from your post I see the SD card isn't working on this build and I need my SD card. Is the link you posted the best place to keep an eye on for any updates you make to your build? Cheers.
Logged

Offline ted209

  • Member
  • *
  • Posts: 5
Re: Hide <All tracks> and <Random>
« Reply #14 on: March 29, 2011, 07:03:34 AM »
I think you misread my post (it wasn't very clear!).  My SD card does work on that build, I was just stating that if I compiled a newer version, then the SD card no longer worked.
Logged

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Hide <All tracks> and <Random>
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.162 seconds with 23 queries.