Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to change the extension position(by modifying the extension.js) in gnome-shell status area? I mean that I'd like to see the language indicator in the first position(from left to right), cuz it's visually easier to find it.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Using information from this page we can deduce that you need to change the line in the extension.js that says

Main.panel.addToStatusArea([sometext],[othertext])

to

Main.panel.addToStatusArea([sometext], [othertext], 1)

After modifying the extension.js file, hit Alt+F2 and then put 'r' in the box and hit enter.

I haven't found any central source to reference the gnome-shell JavaScript API (called GJS). Would be really handy if there was one easily accessible.

share|improve this answer
    
Sorry about that. I forgot to evaluate Panel from the linked code. The code is now correct. –  Githlar Oct 27 '12 at 6:00
    
hm, I'm trying to move all-in-one-places extension and it's not working this way Main.panel.addToStatusArea('all-in-one-places', _indicator, 0); –  user73331 Oct 27 '12 at 6:08
    
Let me see if I can get it working. –  Githlar Oct 27 '12 at 6:09
    
I got it to work just fine. However, mine was already in position 0 and I moved it to position 1. Remember, that to reload the modified extension you have to press Alt+F2, enter 'r' into the box and hit enter. This will reload gnome-shell. –  Githlar Oct 27 '12 at 6:12
    
awesome, it appeared I needed to move it to position 1,sou the language indicator become the position 0. –  user73331 Oct 27 '12 at 6:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.