(SOLVED) GTK bookmarks order

Questions about mintMenu
Forum rules
Before you post please read this

(SOLVED) GTK bookmarks order

Postby HellMan on Sat Nov 27, 2010 4:46 pm

Hello! I have a question, why order in gtk-bookmarks in mint menu is rather strange? It's quite different from order in nautilus.
Last edited by HellMan on Sat Jan 29, 2011 11:38 am, edited 1 time in total.
<O/
User avatar
HellMan
Level 1
Level 1
 
Posts: 12
Joined: Tue Sep 29, 2009 9:26 am
Location: St. Petersburg, Russia

Linux Mint is funded by ads and donations.
 

Re: GTK bookmarks order

Postby unexistance on Sun Nov 28, 2010 10:58 pm

Hi,

It's different :D right-click on your menu | Preference | Places

Regards,
:: Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved ::
unexistance
Level 5
Level 5
 
Posts: 646
Joined: Tue Aug 05, 2008 12:28 am
Location: Malaysia

Re: GTK bookmarks order

Postby HellMan on Mon Nov 29, 2010 3:23 am

Hmmm I know it's different :wink: how to fix it? :?:
<O/
User avatar
HellMan
Level 1
Level 1
 
Posts: 12
Joined: Tue Sep 29, 2009 9:26 am
Location: St. Petersburg, Russia

Re: GTK bookmarks order

Postby unexistance on Mon Nov 29, 2010 9:02 pm

Hi,

Just make it look the same? nautilus bookmark is of different location from the mintmenu.

The only way is to make it the same manually

Or did I misunderstood your question? :D

Regards,
:: Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved ::
unexistance
Level 5
Level 5
 
Posts: 646
Joined: Tue Aug 05, 2008 12:28 am
Location: Malaysia

Re: GTK bookmarks order

Postby HellMan on Tue Nov 30, 2010 2:37 am

unexistance, i mean gtk-bookmarks feature in new MintMenu :wink:

First, i think gtk-bookmarks are stored in ~/.gtk-bookmarks. It's contents:
Image

Next, gtk-bookmarks in nautilus have the same order as in the file:
Image

But in MintMenu -> Places they are mixed up! (I don't add bookmarks manually, just used an option "show gtk bookmarks")
Image

Of course i can disable that feature and add places manually. But i think this thing is very nice and it should be working good :)
<O/
User avatar
HellMan
Level 1
Level 1
 
Posts: 12
Joined: Tue Sep 29, 2009 9:26 am
Location: St. Petersburg, Russia

Re: GTK bookmarks order

Postby unexistance on Tue Nov 30, 2010 9:51 am

Hi,

Sorry I haven't upgraded to mint10 yet ... I guessing mintmenu sort it automatically?

You can ask in mintmenu subforum

Regards,
:: Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved ::
unexistance
Level 5
Level 5
 
Posts: 646
Joined: Tue Aug 05, 2008 12:28 am
Location: Malaysia

Re: GTK bookmarks order + number limit in Mint Menu

Postby mauricep on Thu Jan 06, 2011 3:20 pm

This one seems to me worth bumping. I have the same problem of the "Places" section of the Mint Menu using a seemingly arbitrary order when showing my GTK bookmarks

And I add to this the possibly related problem of the number of GTK bookmarks shown being limited to 5. I would have space for all 7-8 of my favorites if it let me. Coupled with the random order, I cannot even influence which of my 7 bookmarks appear here.

M
mauricep
Level 1
Level 1
 
Posts: 20
Joined: Thu Jun 03, 2010 3:57 am

Re: GTK bookmarks order

Postby HellMan on Sat Jan 29, 2011 11:32 am

Fixed this.
In /usr/lib/linuxmint/mintMenu/plugins/places.py
Code: Select all
diff places_orig.py places.py
215c215
<             bookmarks = {}           
---
>             bookmarks = []
220c220
<                     parts = line.split(' ')
---
>                     parts = line.split(' ', 1)
223c223
<                         bookmarks[parts[1]] = parts[0]
---
>                         bookmarks += [(parts[1], parts[0])]
226c226
<                         bookmarks[junk[len(junk) - 1]] = parts[0]
---
>                         bookmarks += [(junk[len(junk) - 1], parts[0])]
228c228
<             for name, path in bookmarks.iteritems():                         
---
>             for name, path in bookmarks:


Also contains another fix - if bookmark contained spaces - it wasn't showed. With this fix it's ok.

If anyone needs this, fixed plugin here or
places.tar.gz
fixed plugin
(3.06 KiB) Downloaded 113 times


PS. Should I submit it anywhere? :?:

PPS. mauricep, I have 14 items in places (gtk-bookmarks), everything is ok. There's also an option in mintmenu/places - scrollbar, with which really any amount of bookmarks will be shown (though it's not very convenient).
<O/
User avatar
HellMan
Level 1
Level 1
 
Posts: 12
Joined: Tue Sep 29, 2009 9:26 am
Location: St. Petersburg, Russia

Re: (SOLVED) GTK bookmarks order

Postby unexistance on Sun Jan 30, 2011 11:04 am

Hi,

This is awesome, I think you can give this to someone in mint tools subforum...
Or you can ask our forum moderator (they might know)

Regards,
:: Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved ::
unexistance
Level 5
Level 5
 
Posts: 646
Joined: Tue Aug 05, 2008 12:28 am
Location: Malaysia

Re: (SOLVED) GTK bookmarks order

Postby elic on Thu May 19, 2011 2:42 pm

I just wanted to note that I've submitted a similar patch to the launchpad bug tracker for mintmenu (bug 782287), though I'm unclear as to whether that bug tracker is actively in use or not.
elic
Level 1
Level 1
 
Posts: 1
Joined: Thu May 19, 2011 2:34 pm

Re: (SOLVED) GTK bookmarks order

Postby phoinx on Sat Feb 04, 2012 7:57 am

Just passing to say thanks to HellMan!
My menu is fixed now. =]
User avatar
phoinx
Level 1
Level 1
 
Posts: 5
Joined: Sun Apr 24, 2011 12:46 pm

Linux Mint is funded by ads and donations.
 

Return to mintMenu

Who is online

Users browsing this forum: No registered users and 1 guest