Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── PhoshLayerSurface ╰── PhoshSystemModal ╰── PhoshSystemModalDialog ╰── PhoshEndSessionDialog
The PhoshEndSessionDialog is used to confirm/decline the end of the session and is spawned by the PhoshSessionManager.
GtkWidget * phosh_end_session_dialog_new (gint action
,gint seconds
,const char *const *paths
);
gboolean
phosh_end_session_dialog_get_action_confirmed
(PhoshEndSessionDialog *self
);
gint
phosh_end_session_dialog_get_action (PhoshEndSessionDialog *self
);
#define PHOSH_TYPE_END_SESSION_DIALOG (phosh_end_session_dialog_get_type ())
The requested action the PhoshEndSessionDialog should display. This matches the values of the DBus protocols 'open' request..
“action”
property “action” int
The requested action.
Owner: PhoshEndSessionDialog
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“inhibitor-paths”
property“inhibitor-paths” GStrv
Paths to inhibitors that prevent atction.
Owner: PhoshEndSessionDialog
Flags: Read / Write
“closed”
signalvoid user_function (PhoshEndSessionDialog *phoshendsessiondialog, gpointer user_data)
Flags: Run Last