summaryrefslogtreecommitdiff
path: root/gtk/gtkapplication.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-01-07 03:04:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-01-07 03:20:56 -0500
commit3142d13972ea922c9bcdcacc219c6773ce6479e4 (patch)
tree653b5ed6a417f26db98620233b81a946f51fe9d0 /gtk/gtkapplication.h
parentbdd7e15c849cd641000e0efddaeacfe420b1b3e4 (diff)
downloadgtk+-3142d13972ea922c9bcdcacc219c6773ce6479e4.tar.gz
Add gtk_application_end_session
This function allows applications to request that the user session be ended by logout/shutdown/reboot.
Diffstat (limited to 'gtk/gtkapplication.h')
-rw-r--r--gtk/gtkapplication.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkapplication.h b/gtk/gtkapplication.h
index 298e50d27f..4e38441631 100644
--- a/gtk/gtkapplication.h
+++ b/gtk/gtkapplication.h
@@ -116,6 +116,16 @@ void gtk_application_uninhibit (GtkApplication
gboolean gtk_application_is_inhibited (GtkApplication *application,
GtkApplicationInhibitFlags flags);
+typedef enum {
+ GTK_APPLICATION_LOGOUT,
+ GTK_APPLICATION_REBOOT,
+ GTK_APPLICATION_SHUTDOWN
+} GtkApplicationEndStyle;
+
+gboolean gtk_application_end_session (GtkApplication *application,
+ GtkApplicationEndStyle style,
+ gboolean request_confirmation);
+
G_END_DECLS
#endif /* __GTK_APPLICATION_H__ */