~fboucault/unity-2d/stateful_shortcuts

« back to all changes in this revision

Viewing changes to launcher/UnityApplications/launcherapplicationslist.cpp

[launcher] When an application requests attention, position the view so that its tile is visible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    QObject::connect(application, SIGNAL(closed()), this, SLOT(onApplicationClosed()));
189
189
    QObject::connect(application, SIGNAL(stickyChanged(bool)), this, SLOT(onApplicationStickyChanged(bool)));
190
190
    QObject::connect(application, SIGNAL(launchingChanged(bool)), this, SLOT(onApplicationLaunchingChanged(bool)));
 
191
    QObject::connect(application, SIGNAL(urgentChanged(bool)), this, SLOT(onApplicationUrgentChanged(bool)));
191
192
}
192
193
 
193
194
void
379
380
}
380
381
 
381
382
void
 
383
LauncherApplicationsList::onApplicationUrgentChanged(bool urgent)
 
384
{
 
385
    LauncherApplication* application = static_cast<LauncherApplication*>(sender());
 
386
    if (urgent) {
 
387
        Q_EMIT applicationBecameUrgent(m_applications.indexOf(application));
 
388
    }
 
389
}
 
390
 
 
391
void
382
392
LauncherApplicationsList::writeFavoritesToGConf()
383
393
{
384
394
    QStringList favorites;