diff options
author | Ted Gould <ted@gould.cx> | 2010-02-24 17:12:55 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-24 17:12:55 -0600 |
commit | 40e989fdb054344be699414ae040585f4f87f657 (patch) | |
tree | 4c7d8e150b1c01c32e282bd10e9e80c15b80d83f | |
parent | c96dfa4fcf905cdf73b02589b2c64b83849160a6 (diff) | |
download | ayatana-indicator-session-40e989fdb054344be699414ae040585f4f87f657.tar.gz ayatana-indicator-session-40e989fdb054344be699414ae040585f4f87f657.tar.bz2 ayatana-indicator-session-40e989fdb054344be699414ae040585f4f87f657.zip |
Adding some types of dialog and a new function.
-rw-r--r-- | src/gtk-dialog/dialog.c | 7 | ||||
-rw-r--r-- | src/gtk-dialog/dialog.h | 8 |
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 |