title: saving gtk window position
body: <p>I'm trying to save the gtk window position(absolute) to restore it wehn I open the applicaiton again</p>
  
  <p>here's my code so far:</p>
  
  <pre><code>gint x,y;
    gtk_window_get_position(main_window,&amp;x,&amp;y);
    printf("current position is:\nx: %i\ny:%i\n",x,y);
  </code></pre>
  
  <p>this code runs when the application exits, I always get:
  current position is:
  x: 0
  y:0</p>
  
  <p>What am I doing wrong.</p>