~smspillaz/unity/untiy.less-paint-insanity

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DesktopLauncherIcon.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
namespace launcher
28
28
{
29
29
 
30
 
DesktopLauncherIcon::DesktopLauncherIcon(Launcher* IconManager)
31
 
  :   SimpleLauncherIcon(IconManager)
 
30
DesktopLauncherIcon::DesktopLauncherIcon()
 
31
  :   SimpleLauncherIcon()
32
32
  ,   show_in_switcher_(true)
33
33
{
34
34
  tooltip_text = _("Show Desktop");
35
35
  icon_name = "desktop";
36
36
  SetQuirk(QUIRK_VISIBLE, true);
37
 
  SetQuirk(QUIRK_RUNNING, true);
 
37
  SetQuirk(QUIRK_RUNNING, false);
38
38
  SetIconType(TYPE_BEGIN);
 
39
  SetShowInSwitcher(false);
39
40
}
40
41
 
41
42
DesktopLauncherIcon::~DesktopLauncherIcon()
42
43
{
43
44
}
44
45
 
45
 
nux::Color
46
 
DesktopLauncherIcon::BackgroundColor()
47
 
{
48
 
  return nux::Color(0xFF333333);
49
 
}
50
 
 
51
 
nux::Color
52
 
DesktopLauncherIcon::GlowColor()
53
 
{
54
 
  return nux::Color(0xFF333333);
55
 
}
56
 
 
57
46
void
58
47
DesktopLauncherIcon::ActivateLauncherIcon(ActionArg arg)
59
48
{
61
50
  WindowManager::Default()->ShowDesktop();
62
51
}
63
52
 
 
53
std::string DesktopLauncherIcon::GetName() const
 
54
{
 
55
  return "DesktopLauncherIcon";
 
56
}
 
57
 
64
58
} // namespace launcher
65
59
} // namespace unity