2
A dialog to ask the user about the various logout options that
5
Copyright 2010 Canonical Ltd.
8
Ted Gould <ted@canonical.com>
10
This program is free software: you can redistribute it and/or modify it
11
under the terms of the GNU General Public License version 3, as published
12
by the Free Software Foundation.
14
This program is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranties of
16
MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
17
PURPOSE. See the GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License along
20
with this program. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef __LOGOUT_DIALOG_H__
24
#define __LOGOUT_DIALOG_H__
27
#include <glib-object.h>
33
#define LOGOUT_DIALOG_TYPE (logout_dialog_get_type ())
34
#define LOGOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGOUT_DIALOG_TYPE, LogoutDialog))
35
#define LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LOGOUT_DIALOG_TYPE, LogoutDialogClass))
36
#define IS_LOGOUT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGOUT_DIALOG_TYPE))
37
#define IS_LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGOUT_DIALOG_TYPE))
38
#define LOGOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGOUT_DIALOG_TYPE, LogoutDialogClass))
40
typedef enum _LogoutDialogType LogoutDialogType;
41
enum _LogoutDialogType {
42
LOGOUT_DIALOG_TYPE_LOG_OUT,
43
LOGOUT_DIALOG_TYPE_RESTART,
44
LOGOUT_DIALOG_TYPE_SHUTDOWN,
45
LOGOUT_DIALOG_TYPE_CNT
48
typedef struct _LogoutDialog LogoutDialog;
49
typedef struct _LogoutDialogClass LogoutDialogClass;
51
struct _LogoutDialogClass {
52
GtkMessageDialogClass parent_class;
55
struct _LogoutDialog {
56
GtkMessageDialog parent;
59
GType logout_dialog_get_type (void);
60
LogoutDialog * logout_dialog_new (LogoutDialogType type);