1 We currently do not have a way to find out if power button was pressed in
2 application, which runs without root privileges (can't listen to sysevents).
3 gnome-power-manager used hal to do this, but we don't want to resurrect HAL support
6 --- mate-power-manager-1.18.1/src/gpm-prefs-core.c.~3~ 2018-01-17 16:15:43.600627799 +0000
7 +++ mate-power-manager-1.18.1/src/gpm-prefs-core.c 2018-01-17 16:23:56.595383559 +0000
10 gtk_widget_hide(widget);
13 +#if defined(__sun) && defined(__SVR4)
14 + widget = GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder, "hbox_general_power"));
15 + gtk_widget_hide(widget);
17 + /* After removing power button actions preferences "Actions" sections is empty, so we remove label */
18 + widget = GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder, "label122"));
19 + gtk_widget_hide(widget);