~indicator-applet-developers/hud/trunk.13.10

Viewing all changes in revision 311.

  • Committer: Tarmac
  • Author(s): Antti Kaijanmäki
  • Date: 2013-08-21 21:01:23 UTC
  • mfrom: (310.1.2 callback-fix)
  • Revision ID: tarmac-20130821210123-dyizihk3u0oswoqa
Fix Ubuntu UI Session callbacks.

On Touch Images where we use Ubuntu UI Session API to get
notifications when active window changes. The callbacks
are being invoked from a separate thread. We have to
pass the callbacks through g_idle_add() to process them
in main gmaincontext.

This also requires to change the type of AbstractWindow and
AbstractApp as we can't pass on the ubuntu_ui_session_properties
accross different threads. Fixes: https://bugs.launchpad.net/bugs/1203772, https://bugs.launchpad.net/bugs/1205097, https://bugs.launchpad.net/bugs/1214996.

Approved by Pete Woods, PS Jenkins bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: