~ps-jenkins/bamf/latestsnapshot-0.4.0daily13.05.3113.04-0ubuntu1

« back to all changes in this revision

Viewing changes to tests/bamfdaemon/test-application.c

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-02-06 01:20:53 UTC
  • mfrom: (507.1.41 bamf)
  • Revision ID: tarmac-20130206012053-kkllr2nqlbwcdiz1
BamfView: use an idle to emit the active-changed signal to avoid to send the same event to a view. Fixes: https://bugs.launchpad.net/bugs/1115827.

Approved by Brandon Schaefer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
 
269
269
  // Ensure that when adding a skip-tasklist window, we dont set this to visible
270
270
  g_assert (bamf_view_is_active (BAMF_VIEW (application)));
 
271
  g_assert (!signal_seen);
 
272
  while (g_main_context_pending (NULL)) g_main_context_iteration(NULL, TRUE);
271
273
  g_assert (signal_seen);
272
274
  g_assert (signal_result);
273
275
 
279
281
  g_assert (!signal_seen);
280
282
 
281
283
  bamf_legacy_window_test_set_active (test1, FALSE);
 
284
  g_assert (!signal_seen);
 
285
  g_assert (bamf_view_is_active (BAMF_VIEW (application)));
 
286
  while (g_main_context_pending (NULL)) g_main_context_iteration(NULL, TRUE);
282
287
 
283
288
  g_assert (!bamf_view_is_active (BAMF_VIEW (application)));
284
289
  g_assert (signal_seen);