~mhr3/awn-extras/zeitgeist-applet

« back to all changes in this revision

Viewing changes to applets/maintained/cairo-menu/gnome-menu-builder.c

  • Committer: Mark Lee
  • Date: 2010-04-18 07:03:46 UTC
  • mto: This revision was merged to the branch mainline in revision 1292.
  • Revision ID: bzr@lazymalevolence.com-20100418070346-39hmic7zqnaj4w20
cairo-menu: show 'Logout' item on GNOME versions with no session manager DBus service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
  {
111
111
    add_special_item (menu,_("Logout"),"gnome-logout","xfce4-session-logout","");
112
112
  }
 
113
  else
 
114
  {
 
115
    /* hope that gnome-session-save exists; needed for GNOME 2.22, at least. */
 
116
    add_special_item (menu, _("Logout"), "gnome-logout", "gnome-session-save",
 
117
                      "--kill --gui");
 
118
  }
113
119
  if (dbus_service_exists ("org.gnome.ScreenSaver"))
114
120
  {
115
121
    if (!add_special_item (menu,_("Lock Screen"),"gnome-lockscreen","gnome-screensaver-command","--lock"))