Skip to content

Commit

Permalink
mate-panel/panel-menu-items.c: Only offer Shutdown button, if not run…
Browse files Browse the repository at this point in the history
…ning remotely (with HAVE_RDA defined).
  • Loading branch information
sunweaver committed Nov 9, 2018
1 parent 24c31d2 commit ac8dd1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mate-panel/panel-menu-items.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,13 +1669,19 @@ panel_menu_items_append_lock_logout (GtkWidget *menu)
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
}

#ifdef HAVE_RDA
if (rda_session_is_local()) {
#endif /* HAVE_RDA */
item = panel_menu_items_create_action_item (PANEL_ACTION_SHUTDOWN);
if (item != NULL) {
if (!separator_inserted)
add_menu_separator (menu);

gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
}
#ifdef HAVE_RDA
}
#endif /* HAVE_RDA */
}

void
Expand Down

0 comments on commit ac8dd1d

Please sign in to comment.