aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gtk-dialog/dialog.c7
-rw-r--r--src/gtk-dialog/dialog.h8
2 files changed, 15 insertions, 0 deletions
diff --git a/src/gtk-dialog/dialog.c b/src/gtk-dialog/dialog.c
index c9d66b3..06b146c 100644
--- a/src/gtk-dialog/dialog.c
+++ b/src/gtk-dialog/dialog.c
@@ -56,3 +56,10 @@ logout_dialog_finalize (GObject *object)
G_OBJECT_CLASS (logout_dialog_parent_class)->finalize (object);
return;
}
+
+LogoutDialog *
+logout_dialog_new (LogoutDialogType type)
+{
+
+ return NULL;
+}
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