title: g_timeout_add inside a GThread
body: <p>I'm trying to add a timeout source specific to a particular GThread.</p>
  <p>In the main thread, I can create a GMainContext (<strong>g_main_context_new</strong>) and add a timeout (<strong>g_timeout_add</strong>). However, when I try to do it in a thread created with <strong>g_thread_create</strong> it simply doesn't work, the GSourceFunc is never called and I have no clue why.</p>
  <p>For the moment I've only got this the documentation:</p>
  <blockquote>
  <p>Callbacks require a bit of attention. Callbacks from GTK+ (signals)
  are made within the GTK+ lock. However callbacks from GLib (timeouts,
  IO callbacks, and idle functions) are made outside of the GTK+ lock.
  So, within a signal handler you do not need to call
  gdk_threads_enter(), but within the other types of callbacks, you do.</p>
  </blockquote>
  <p>But my timeout function (for testing purposes) only prints in the console, so I don't think it's a problem of resource protection and mutexes.</p>
  <p>The thread structure is:</p>
  <blockquote>
  <p>Main thread --&gt; no GLib main context explicitly created</p>
  <ul>
  <li><p>capture thread</p>
  </li>
  <li><p>process thread --&gt; should have a GLib main context and a timeout source</p>
  </li>
  <li><p>show thread</p>
  </li>
  </ul>
  </blockquote>
  <p>I appreciate any help.</p>
  <p>Thanks in advance.</p>