~do-plugins/do-plugins/trunk

« back to all changes in this revision

Viewing changes to GNOME-Session/src/SessionCommandsItemSource.cs

  • Committer: Christopher James Halse Rogers
  • Date: 2013-05-01 21:52:26 UTC
  • mfrom: (754.1.1 do-plugins)
  • Revision ID: raof@ubuntu.com-20130501215226-eloglpmjnc1emm9h
Add logind support


Use logind for Suspend/Hibernate/Reboot/Shutdown if available

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                                yield return new SessionCommandItem (
54
54
                                        AddinManager.CurrentLocalizer.GetString ("Log Out"),
55
55
                                        AddinManager.CurrentLocalizer.GetString ("Close your session and return to the login screen."),
56
 
                                        "gnome-session-logout",
 
56
                                        "system-log-out",
57
57
                                        PowerManagement.Logout);
58
58
 
59
59
                                yield return new SessionCommandItem (
60
60
                                        AddinManager.CurrentLocalizer.GetString ("Shutdown"),
61
61
                                        AddinManager.CurrentLocalizer.GetString ("Turn your computer off."),
62
 
                                        "gnome-session-halt",
 
62
                                        "system-shutdown",
63
63
                                        SystemManagement.Shutdown);
64
64
 
65
65
                                yield return new SessionCommandItem (
66
66
                                        AddinManager.CurrentLocalizer.GetString ("Hibernate"),
67
67
                                        AddinManager.CurrentLocalizer.GetString ("Put your computer into hibernation mode."),
68
 
                                        "gnome-session-hibernate",
 
68
                                        "system-shutdown",
69
69
                                        PowerManagement.Hibernate);
70
70
 
71
71
                                yield return new SessionCommandItem (
72
72
                                        AddinManager.CurrentLocalizer.GetString ("Suspend"),
73
73
                                        AddinManager.CurrentLocalizer.GetString ("Put your computer into suspend mode."),
74
 
                                        "gnome-session-suspend",
 
74
                                        "system-shutdown",
75
75
                                        PowerManagement.Suspend);
76
76
 
77
77
                                yield return new SessionCommandItem (
78
78
                                        AddinManager.CurrentLocalizer.GetString ("Restart"),
79
79
                                        AddinManager.CurrentLocalizer.GetString ("Restart your computer."),
80
 
                                        "gnome-session-reboot",
 
80
                                        "system-shutdown",
81
81
                                        SystemManagement.Restart);
82
82
 
83
83
                                yield return new SessionCommandItem (