~ken-vandine/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tests/tracker/fullname-updates.vala

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-09-08 12:26:07 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: package-import@ubuntu.com-20110908122607-g8fdqcpxlbxcn5q0
Tags: 0.6.2-0ubuntu1
* New upstream release
* debian/control:
  - Bump vala build dependency
* debian/libfolks25.symbols:
* debian/libfolks-eds25.symbols:
  - Updated symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
      var store = BackendStore.dup ();
95
95
      yield store.prepare ();
96
96
      this._aggregator = new IndividualAggregator ();
97
 
      this._aggregator.individuals_changed.connect
 
97
      this._aggregator.individuals_changed_detailed.connect
98
98
          (this._individuals_changed_cb);
99
99
      try
100
100
        {
106
106
        }
107
107
    }
108
108
 
109
 
  private void _individuals_changed_cb
110
 
      (Set<Individual> added,
111
 
       Set<Individual> removed,
112
 
       string? message,
113
 
       Persona? actor,
114
 
       GroupDetails.ChangeReason reason)
 
109
  private void _individuals_changed_cb (
 
110
       MultiMap<Individual?, Individual?> changes)
115
111
    {
 
112
      var added = changes.get_values ();
 
113
      var removed = changes.get_keys ();
 
114
 
116
115
      foreach (var i in added)
117
116
        {
 
117
          assert (i != null);
 
118
 
118
119
          if (i.full_name == this._initial_fullname)
119
120
            {
120
121
              i.notify["full-name"].connect (this._notify_full_name_cb);
125
126
            }
126
127
        }
127
128
 
128
 
        assert (removed.size == 0);
 
129
      assert (removed.size == 1);
 
130
 
 
131
      foreach (var i in removed)
 
132
        {
 
133
          assert (i == null);
 
134
        }
129
135
    }
130
136
 
131
137
  private void _notify_full_name_cb (Object individual_obj, ParamSpec ps)