1
0
gnome-control-center/gnome-control-center-more-power-button-actions.patch
Dominique Leuenberger 05e3acd073 Accepting request 487824 from home:zhangxiaofei:branches:GNOME:Factory
- Add gnome-control-center-more-power-button-actions.patch:
  Bring back the "shutdown" and "interactive" power key actions in
  "Power" panel (bsc#993381).

OBS-URL: https://build.opensuse.org/request/show/487824
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=345
2017-04-24 08:38:27 +00:00

19 lines
753 B
Diff

diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index e631e0b..fed19dd 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -2020,9 +2020,11 @@ populate_power_button_model (GtkTreeModel *model)
char *name;
GsdPowerButtonActionType value;
} actions[] = {
- { N_("Suspend"), GSD_POWER_BUTTON_ACTION_SUSPEND },
{ N_("Hibernate"), GSD_POWER_BUTTON_ACTION_HIBERNATE },
- { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING }
+ { N_("Interactive"), GSD_POWER_BUTTON_ACTION_INTERACTIVE},
+ { N_("Nothing"), GSD_POWER_BUTTON_ACTION_NOTHING },
+ { N_("Shutdown"), GSD_POWER_BUTTON_ACTION_SHUTDOWN },
+ { N_("Suspend"), GSD_POWER_BUTTON_ACTION_SUSPEND }
};
guint i;