~indicator-applet-developers/indicator-sound/trunk.13.04

« back to all changes in this revision

Viewing changes to src/metadata-menu-item.vala

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-04-05 13:05:54 UTC
  • mfrom: (344.1.7 indicator-sound)
  • Revision ID: tarmac-20130405130554-9eawtnup17d6ioo2
PlayerActivator: Use BAMF to find the windows to activate with timestamp

Improved the"old" GtkApplicationPlayer, using BAMF as a fallback method to
activate an application's windows. Basically we try to get the windows of the
selected application and when found we focus them using the activation
timestamp. Fixes: https://bugs.launchpad.net/bugs/627195.

Approved by PS Jenkins bot, Lars Uebernickel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
      this.owner.instantiate(timestamp);
178
178
    }
179
179
    else if (this.owner.current_state == PlayerController.state.CONNECTED) {
180
 
      this.owner.gtk_app_player.activate(timestamp);
 
180
      this.owner.player_activator.activate(timestamp);
181
181
      this.owner.mpris_bridge.expose(timestamp);
182
182
    }
183
183
  }