~ubuntu-branches/ubuntu/trusty/unity-2d/trusty

« back to all changes in this revision

Viewing changes to spread/app/spreadcontrol.cpp

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-02-17 14:21:45 UTC
  • mfrom: (1.1.27)
  • Revision ID: package-import@ubuntu.com-20120217142145-bftcnhgjlhm7rkgi
Tags: 5.4.0-0ubuntu1
* New upstream release
  - unity-2d-launcher crashed with SIGABRT in qt_message_output()
    (LP: #854634)
  - Useless scroll arrows in Unity 2D global menus (LP: #913237)
  - [workspace switcher] Does not activate since bzr revision 900
    (LP: #928398)
  - On unity 2d when using Hebrew localization launcher won't load if you
    move cursor all the way to the right (LP: #877292)
  - panel 2D uses wrong width on multi monitor setup (LP: #880698)
  - Keyboard shortcut - F10 shortcut is used to show menu and this is wrong
    (LP: #878492)
  - [dash] User can move dash around with ALT+LeftClick+Move (LP: #827838)
  - [launcher] UI does not distinguish between windows on this workspace and
    others (LP: #883172)
  - Panel and launcher are blank and non-functional when /usr is a symlink
    (LP: #757288)
  - Launcher - change to 'locked out' by default (LP: #928153)
* debian/control:
  - Build-dep on latest nux (ABI break)
* debian/*install, debian/control:
  - transition unity-2d-launcher and unity-2d-places to unity-2d-shell
  - breaks against older gnome-session (as components links changed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "spreadcontrol.h"
24
24
#include "spreadadaptor.h"
25
 
#include "launcherclient.h"
26
25
 
27
26
static const char* DBUS_SERVICE = "com.canonical.Unity2d.Spread";
28
27
static const char* DBUS_OBJECT_PATH = "/Spread";
29
28
 
30
29
SpreadControl::SpreadControl(QObject *parent) :
31
 
    QObject(parent), m_isShown(false),
32
 
    m_launcherClient(new LauncherClient(this))
 
30
    QObject(parent), m_isShown(false)
33
31
{
34
32
}
35
33
 
36
34
void
37
35
SpreadControl::setIsShown(bool isShown)
38
36
{
39
 
    m_isShown = isShown;
40
 
    if (m_isShown) {
41
 
        m_launcherClient->beginForceVisible();
42
 
    } else {
43
 
        m_launcherClient->endForceVisible();
 
37
    if (isShown != m_isShown) {
 
38
        m_isShown = isShown;
 
39
        Q_EMIT IsShownChanged(isShown);
44
40
    }
45
41
}
46
42