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.

I've been rummaging through Unity's source code (Shell Interface) and I was a little curious about something; where in the code are you supposed to find positional code? I'll clarify a bit with some examples. How do you find in the code what tells the Launcher to sit on the left side of the screen? Where in the code does it tell the "Session" button on the panel (top) to sit at the very right of the screen?

I guess my real question is how do I find this out for myself? I've looked through a big portion of the source code and can't find anything related to the actual position of these items, only their sub-items like text-align. Any guidance on this would be much appreciated.

share|improve this question
    
Find (using rummaging tools like grep) where, in the source, the object (Launcher, Session button) is created, and look at the details of how it is created. –  waltinator May 3 at 18:10

2 Answers 2

Regarding the positioning of the laucher:

if you search the source code for 'geometry', 'width', 'height' and so on, you will encounter the function Launcher::Resize, which sets the launcher's window geometry.

Looking at the callers of this function (Launcher::SetIconSize and Launcher::OnMonitorChanged), you will quickly find out, that the launcher is indeed positioned at the to left corner of the display and has full height (minus the height of the panel).

share|improve this answer

/usr/share/themes contains all of the customization options for a unity theme. Let me know if you find these specific settings in there for your theme.

share|improve this answer

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.