1
0
gnome-control-center/gnome-control-center-more-power-button-actions.patch

19 lines
760 B
Diff

diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index c31249c..5718c98 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -2169,10 +2169,11 @@ populate_power_button_model (GtkTreeModel *model,
char *name;
GsdPowerButtonActionType value;
} actions[] = {
+ { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING },
{ N_("Suspend"), GSD_POWER_BUTTON_ACTION_SUSPEND },
- { N_("Power Off"), GSD_POWER_BUTTON_ACTION_INTERACTIVE },
{ N_("Hibernate"), GSD_POWER_BUTTON_ACTION_HIBERNATE },
- { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING }
+ { N_("Power Off"), GSD_POWER_BUTTON_ACTION_INTERACTIVE },
+ { N_("Force Off"), GSD_POWER_BUTTON_ACTION_SHUTDOWN }
};
guint i;