| 3853 | } |
| 3854 | |
| 3855 | static gboolean |
| 3856 | suspend_cb(countdown_t *cd) |
| 3857 | { |
| 3858 | cd->timeout--; |
| 3859 | gtk_message_dialog_format_secondary_text(cd->dlg, _("%s in %d seconds…"), |
| 3860 | cd->action, cd->timeout); |
| 3861 | if (cd->timeout == 0) |
| 3862 | { |
| 3863 | gtk_window_destroy(GTK_WINDOW(cd->dlg)); |
| 3864 | suspend_logind(); |
| 3865 | return FALSE; |
| 3866 | } |
| 3867 | return TRUE; |
| 3868 | } |
| 3869 | |
| 3870 | static void |
| 3871 | countdown_dialog_response (GtkDialog *dialog, int response, guint *timeout_id) |
nothing calls this directly
no test coverage detected