<div dir="ltr">Hey Ted thanks for responding. So I've been trying some things by looking at the Ubuntu One source. I did succeed in getting a item in the sync menu. However I'm also trying to implement the on/off button. When its toggled it returns a <i><GParamBoolean 'paused'></i> but how do I access the state? I can't seem to get the value from it. So how would I do that.<div>
<br></div><div>Also when I toggle the button for the first time my app doesn't seem to get a signal. Only the times after that. Do I need to listen to it in another way? I'm using this at the moment:</div><div><br>
</div><div><i>self.app.connect("notify::paused", self.sync_stage_change)</i></div><div style><br></div><div>Marlin</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 5:57 AM, Ted Gould <span dir="ltr"><<a href="mailto:ted@ubuntu.com" target="_blank">ted@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div><div class="im">
On Sun, 2013-05-05 at 21:06 +0200, Marlin Cremers wrote:
<blockquote type="CITE">
    I'm working on a Java application that needs to integrate with Ubuntu. Because there is not a nice way of integration with Unity I'm using a Python script that creates a app indicator. But I'm looking to integrate with the sync menu that came in Ubuntu 13.04. Is this possible in Python if so. How would I do that? 
</blockquote>
<br></div>
For the Sync menu you can use <tt>libsync-menu1</tt> to access it and add items.  You might also want to grab <tt>libsync-menu-dev</tt>.  For the Python bindings we're relying on GObject Introspection for them, so you can add the library like this:<br>

<br>
<blockquote>
    <tt>from gi.repository import SyncMenu</tt><br>
</blockquote>
<br>
You might also look at the Java project to provide GObject Introspection.  I haven't used it myself, but it looks like it's likely to have most of what you'd need completed already:<br>
<br>
<blockquote>
    <a href="https://live.gnome.org/JGIR" target="_blank">https://live.gnome.org/JGIR</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
Ted<br>
<br>
</font></span></div>

</blockquote></div><br></div></div>