title: How to get window origin (position) in mate applet?
body: <p>I try to get window origin in a mate panel applet.<br>
  To be more precise I want to know the position of my applet (x and y) on the screen because I have a button which show/hide a <code>Gtk.window</code> but I need to move that window next to my button (above, below, right, left depending on where the mate panel is)</p>
  
  <p><a href="https://i.stack.imgur.com/OTnmX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OTnmX.png" alt="enter image description here"></a></p>
  
  <p>The only way that I found is to call <code>get_origin</code> but there is a problem. It should return a tuple x,y but instead like the c function it require two integers and since python use pass by value of course it doesn't work.</p>
  
  <p>This code is valid but useless:</p>
  
  <pre><code>window = self.get_window()
  x = 0
  y = 0
  window.get_origin(x, y)
  </code></pre>
  
  <p>All other "way to use" <code>get_origin</code> (that you can found in any doc) does not work because it require 3 args (I don't know why)</p>
  
  <p>So I'm looking for a way to get the position of my applet (even if it's not accurate) or to move my window next to my button.</p>