~3v1n0/bamf/libbamf-safer-factory-rematch

« back to all changes in this revision

Viewing changes to lib/libbamf/bamf-matcher.c

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2012-06-22 10:25:17 UTC
  • mfrom: (467.3.3 bamf)
  • Revision ID: tarmac-20120622102517-xfdteimy9w16us2k
BamfMatcher: force a view as closed or not-closed on proper signals.
  
  This avoids that a view that is opened is actually marked as closed when
  really it's running. Fixes #925421. Fixes: https://bugs.launchpad.net/bugs/925421. Approved by Jason Smith.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
  if (!BAMF_IS_VIEW (view))
152
152
    return;
153
153
 
 
154
  /* We manually set the view as not closed, to avoid issues like bug #925421 */
 
155
  _bamf_view_set_closed (view, FALSE);
154
156
  g_signal_emit (matcher, matcher_signals[VIEW_OPENED], 0, view);
155
157
}
156
158
 
168
170
  if (!BAMF_IS_VIEW (view))
169
171
    return;
170
172
 
 
173
  /* We manually set the view as closed, to avoid issues like bug #925421 */
 
174
  _bamf_view_set_closed (view, TRUE);
171
175
  g_signal_emit (matcher, matcher_signals[VIEW_CLOSED], 0, view);
172
176
}
173
177