1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2  *
3  * Copyright (C) 2006 Vincent Untz
4  * Copyright (C) 2012-2021 MATE Developers
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  *
21  * Authors:
22  *	Vincent Untz <vuntz@gnome.org>
23  */
24 
25 #ifndef __GSM_LOGOUT_DIALOG_H__
26 #define __GSM_LOGOUT_DIALOG_H__
27 
28 #include <gtk/gtk.h>
29 
30 G_BEGIN_DECLS
31 
32 #define GSM_TYPE_LOGOUT_DIALOG         (gsm_logout_dialog_get_type ())
33 G_DECLARE_FINAL_TYPE (GsmLogoutDialog, gsm_logout_dialog, GSM, LOGOUT_DIALOG, GtkMessageDialog)
34 
35 enum
36 {
37         GSM_LOGOUT_RESPONSE_LOGOUT,
38         GSM_LOGOUT_RESPONSE_SWITCH_USER,
39         GSM_LOGOUT_RESPONSE_SHUTDOWN,
40         GSM_LOGOUT_RESPONSE_REBOOT,
41         GSM_LOGOUT_RESPONSE_HIBERNATE,
42         GSM_LOGOUT_RESPONSE_SLEEP
43 };
44 
45 GtkWidget   *gsm_get_logout_dialog        (GdkScreen           *screen,
46                                            guint32              activate_time);
47 GtkWidget   *gsm_get_shutdown_dialog      (GdkScreen           *screen,
48                                            guint32              activate_time);
49 
50 G_END_DECLS
51 
52 #endif /* __GSM_LOGOUT_DIALOG_H__ */
53