aboutsummaryrefslogtreecommitdiff
path: root/src/gtk-dialog/dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk-dialog/dialog.h')
-rw-r--r--src/gtk-dialog/dialog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gtk-dialog/dialog.h b/src/gtk-dialog/dialog.h
index eeb93ed..79c8a05 100644
--- a/src/gtk-dialog/dialog.h
+++ b/src/gtk-dialog/dialog.h
@@ -13,6 +13,13 @@ G_BEGIN_DECLS
#define IS_LOGOUT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LOGOUT_DIALOG_TYPE))
#define LOGOUT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LOGOUT_DIALOG_TYPE, LogoutDialogClass))
+typedef enum _LogoutDialogType LogoutDialogType;
+enum _LogoutDialogType {
+ LOGOUT_DIALOG_TYPE_LOG_OUT,
+ LOGOUT_DIALOG_TYPE_RESTART,
+ LOGOUT_DIALOG_TYPE_SHUTDOWN
+};
+
typedef struct _LogoutDialog LogoutDialog;
typedef struct _LogoutDialogClass LogoutDialogClass;
@@ -25,6 +32,7 @@ struct _LogoutDialog {
};
GType logout_dialog_get_type (void);
+LogoutDialog * logout_dialog_new (LogoutDialogType type);
G_END_DECLS