~unity-team/bamf/trunk

« back to all changes in this revision

Viewing changes to src/bamf-matcher.c

  • Committer: Bileto Bot
  • Author(s): Andrea Azzarone
  • Date: 2016-06-28 16:55:06 UTC
  • mfrom: (638.1.1 bamf)
  • Revision ID: ci-train-bot@canonical.com-20160628165506-l080bvbl0zd2xeiy
Daemon: manually set to complete the startup notification on view state change

Specifically when the view is running, activated or marked as urgent. (LP: #1582430)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2250
2250
}
2251
2251
 
2252
2252
static void
2253
 
handle_window_opening (BamfLegacyScreen *screen, const gchar *desktop_id, BamfMatcher *self)
 
2253
handle_window_opening (BamfLegacyScreen *screen, const gchar *desktop_id, SnStartupSequence *startup_sequence, BamfMatcher *self)
2254
2254
{
2255
 
  bamf_matcher_set_starting_desktop_file (self, desktop_id, TRUE);
 
2255
  bamf_matcher_set_starting_desktop_file (self, desktop_id, startup_sequence, TRUE);
2256
2256
}
2257
2257
 
2258
2258
static void
2259
2259
handle_window_opening_finished (BamfLegacyScreen *screen, const gchar *desktop_id, BamfMatcher *self)
2260
2260
{
2261
 
  bamf_matcher_set_starting_desktop_file (self, desktop_id, FALSE);
 
2261
  bamf_matcher_set_starting_desktop_file (self, desktop_id, NULL, FALSE);
2262
2262
}
2263
2263
 
2264
2264
static void
2499
2499
void
2500
2500
bamf_matcher_set_starting_desktop_file (BamfMatcher *self,
2501
2501
                                        const char *desktop_file,
 
2502
                                        SnStartupSequence *startup_sequence,
2502
2503
                                        gboolean starting)
2503
2504
{
2504
2505
  BamfApplication *app;
2523
2524
 
2524
2525
  if (BAMF_IS_APPLICATION (app))
2525
2526
    {
2526
 
      bamf_view_set_starting (BAMF_VIEW (app), starting);
 
2527
      bamf_view_set_starting (BAMF_VIEW (app), startup_sequence, starting);
2527
2528
    }
2528
2529
}
2529
2530