+ if (short_active == SHORT_POWER_KEY_DISABLED &&
+ long_active == LONG_POWER_KEY_DISABLED &&
+ double_active == DOUBLE_POWER_KEY_DISABLED)
+ {
+ GtkWidget *note;
+ gint retcode;
+
+ note = hildon_note_new_confirmation
+ (NULL, "Setting all Power Key options to \"Disabled\" means "
+ "that the only way to turn the device off is the removal of "
+ "the battery. Do you want to continue?");
+ retcode = gtk_dialog_run (GTK_DIALOG (note));
+ gtk_widget_destroy (note);
+
+ if (retcode == GTK_RESPONSE_CANCEL)
+ return FALSE;
+ }
+
+ *requires_restart = TRUE;
+