~mardy/unity-2d/indicator-padding

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/launcherapplication.cpp

  • Committer: Florian Boucault
  • Date: 2011-08-18 09:40:57 UTC
  • mfrom: (574.75.1 unity-2d)
  • Revision ID: florian@boucault.net-20110818094057-ufe70asg5nf8nfsq
MergedĀ lp:unity-2d

Show diffs side-by-side

added added

removed removed

Lines of Context:
402
402
 
403
403
    QObject::connect(application, SIGNAL(ActiveChanged(bool)), this, SIGNAL(activeChanged(bool)));
404
404
 
 
405
    QObject::connect(application, SIGNAL(RunningChanged(bool)), this, SLOT(updateCounterVisible()));
405
406
    /* FIXME: a bug somewhere makes connecting to the Closed() signal not work even though
406
407
              the emit Closed() in bamf-view.cpp is reached. */
407
408
    /* Connect first the onBamfApplicationClosed slot, then the runningChanged
420
421
    connect(application, SIGNAL(WindowAdded(BamfWindow*)), SLOT(onWindowAdded(BamfWindow*)));
421
422
 
422
423
    updateBamfApplicationDependentProperties();
 
424
    updateCounterVisible();
423
425
}
424
426
 
425
427
void
537
539
    Q_EMIT windowCountChanged(windowCount());
538
540
}
539
541
 
 
542
void
 
543
LauncherApplication::updateCounterVisible()
 
544
{
 
545
    bool counterVisible = running() && m_counter > 0;
 
546
 
 
547
    if (m_counterVisible != counterVisible) {
 
548
        m_counterVisible = counterVisible;
 
549
        Q_EMIT counterVisibleChanged(m_counterVisible);
 
550
    }
 
551
}
 
552
 
540
553
bool
541
554
LauncherApplication::has_visible_window() const
542
555
{