~mhr3/libunity/fix-937464

« back to all changes in this revision

Viewing changes to src/unity-lens-private.vala

  • Committer: Tarmac
  • Author(s): Michal Hruby
  • Date: 2012-09-05 10:21:10 UTC
  • mfrom: (171.1.4 libunity)
  • Revision ID: tarmac-20120905102110-4myo5pskc1jyq44r
Add hints parameter to dbus Activate() method. Fixes: . Approved by Pawel Stolowski.

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
  public async ActivationReplyRaw activate (string uri,
497
497
                                            uint action_type) throws IOError
498
498
  {
 
499
    var hints = new HashTable<string, Variant> (null, null);
 
500
    var reply = yield activate_with_hints (uri, action_type, hints);
 
501
    return reply;
 
502
  }
 
503
 
 
504
  public async ActivationReplyRaw activate_with_hints (
 
505
      string uri, uint action_type,
 
506
      HashTable<string, Variant> hints) throws IOError
 
507
  {
499
508
    string[] tokens;
500
509
    ScopeProxy? scope = null;
501
510
    string? scope_uri = null;
520
529
 
521
530
    if (scope is ScopeProxy)
522
531
    {
523
 
      raw = yield scope.activate (scope_uri, (ActionType) action_type);
 
532
      raw = yield scope.activate (scope_uri, (ActionType) action_type, hints);
524
533
      raw.uri = "%s:%s".printf (uid_for_scope (scope), raw.uri);
525
534
    }
526
535
    else