I've created a simple indicator in python using the appindicator module. However, it always shows up to the left of the existing indicators. Is there some way to control what position the indicators appears in?
For example, it currently displays like so...
my indicator, volume indicator, messaging indicator
but I want...
volume indicator, messaging indicator, my indicator
The previous answer is correct in saying that the layout is like this:
Which means you can not have the layout you mention in the question. But, you CAN move an Application Indicator within the space allocated for the application indicators. You do that by calling app_indicator_set_ordering_index() to a custom value. The value is normally generated by the application name and category, but if you want to be next to another indicator you can grab it's value and add (or subtract) one so that you are close.
It's the indicator applet's default to group application and system indicators separately, and place application indicators to the left of system indicators, so you'd probably need a modified host applet to do that.
See the specification for further information, and you can also ask for help in #ayatana on Freenode.