1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2  *
3  * Copyright (C) 2011 Red Hat, Inc.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street - Suite 500, Boston, MA
18  * 02110-1335, USA.
19  *
20  * Authors:
21  *	Colin Walters <walters@verbum.org>
22  */
23 
24 #ifndef __CSM_FAIL_WHALE_DIALOG_H__
25 #define __CSM_FAIL_WHALE_DIALOG_H__
26 
27 #include <gtk/gtk.h>
28 
29 G_BEGIN_DECLS
30 
31 #define CSM_TYPE_FAIL_WHALE_DIALOG         (csm_fail_whale_dialog_get_type ())
32 #define CSM_FAIL_WHALE_DIALOG(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), CSM_TYPE_FAIL_WHALE_DIALOG, CsmFailWhaleDialog))
33 #define CSM_FAIL_WHALE_DIALOG_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), CSM_TYPE_FAIL_WHALE_DIALOG, CsmFailWhaleDialogClass))
34 #define CSM_IS_FAIL_WHALE_DIALOG(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSM_TYPE_FAIL_WHALE_DIALOG))
35 #define CSM_IS_FAIL_WHALE_DIALOG_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), CSM_TYPE_FAIL_WHALE_DIALOG))
36 #define CSM_FAIL_WHALE_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CSM_TYPE_FAIL_WHALE_DIALOG, CsmFailWhaleDialogClass))
37 
38 typedef struct _CsmFailWhaleDialog         CsmFailWhaleDialog;
39 typedef struct _CsmFailWhaleDialogClass    CsmFailWhaleDialogClass;
40 typedef struct _CsmFailWhaleDialogPrivate  CsmFailWhaleDialogPrivate;
41 
42 struct _CsmFailWhaleDialog
43 {
44         GtkWindow                  parent;
45 
46         CsmFailWhaleDialogPrivate *priv;
47 };
48 
49 struct _CsmFailWhaleDialogClass
50 {
51         GtkWindowClass  parent_class;
52 };
53 
54 GType        csm_fail_whale_dialog_get_type   (void) G_GNUC_CONST;
55 
56 void         csm_fail_whale_dialog_we_failed  (gboolean            debug_mode,
57                                                gboolean            allow_logout);
58 
59 G_END_DECLS
60 
61 #endif /* __CSM_FAIL_WHALE_DIALOG_H__ */
62