~mefrio-g/+junk/indicator-session-pantheon-shutdown

« back to all changes in this revision

Viewing changes to src/dialog.h

  • Committer: cody at elementaryos
  • Date: 2012-12-10 00:13:38 UTC
  • Revision ID: cody@elementaryos.org-20121210001338-379sxx4jo6r003d6
Initial import, version 0.3.96-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
A dialog to ask the user about the various logout options that
 
3
are available.
 
4
 
 
5
Copyright 2010 Canonical Ltd.
 
6
 
 
7
Authors:
 
8
    Ted Gould <ted@canonical.com>
 
9
 
 
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.
 
13
 
 
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.
 
18
 
 
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/>.
 
21
*/
 
22
 
 
23
#ifndef __LOGOUT_DIALOG_H__
 
24
#define __LOGOUT_DIALOG_H__
 
25
 
 
26
#include <glib.h>
 
27
#include <glib-object.h>
 
28
 
 
29
#include <gtk/gtk.h>
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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))
 
39
 
 
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
 
46
};
 
47
 
 
48
typedef struct _LogoutDialog      LogoutDialog;
 
49
typedef struct _LogoutDialogClass LogoutDialogClass;
 
50
 
 
51
struct _LogoutDialogClass {
 
52
        GtkMessageDialogClass parent_class;
 
53
};
 
54
 
 
55
struct _LogoutDialog {
 
56
        GtkMessageDialog parent;
 
57
};
 
58
 
 
59
GType logout_dialog_get_type (void);
 
60
LogoutDialog * logout_dialog_new (LogoutDialogType type);
 
61
 
 
62
G_END_DECLS
 
63
 
 
64
#endif