diff options
author | Benedikt Meurer <benny@xfce.org> | 2004-07-13 22:37:05 +0000 |
---|---|---|
committer | Benedikt Meurer <benny@xfce.org> | 2004-07-13 22:37:05 +0000 |
commit | f6580d3559b79348d4bf96fca522d2cbc45d3423 (patch) | |
tree | 91a2e77e0317a449df62f0596421c4abc4c04507 /xfce4-session/xfsm-chooser.h | |
parent | 45a34f5a4eb26ad279b846d65b4fd0977d829324 (diff) | |
download | xfce4-session-f6580d3559b79348d4bf96fca522d2cbc45d3423.tar.gz |
Separate the splash screen engine code to put the user in control. Not yet
finished, but working.
(Old svn revision: 4612)
Diffstat (limited to 'xfce4-session/xfsm-chooser.h')
-rw-r--r-- | xfce4-session/xfsm-chooser.h | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/xfce4-session/xfsm-chooser.h b/xfce4-session/xfsm-chooser.h index adb3c2af..ec845e71 100644 --- a/xfce4-session/xfsm-chooser.h +++ b/xfce4-session/xfsm-chooser.h @@ -24,18 +24,19 @@ #include <gtk/gtk.h> -#include <libxfce4util/libxfce4util.h> -G_BEGIN_DECLS +G_BEGIN_DECLS; #define XFSM_TYPE_CHOOSER xfsm_chooser_get_type() #define XFSM_CHOOSER(obj) G_TYPE_CHECK_INSTANCE_CAST(obj, XFSM_TYPE_CHOOSER, XfsmChooser) #define XFSM_CHOOSER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST(klass, XFSM_TYPE_CHOOSER, XfsmChooserClass) #define XFSM_IS_CHOOSER(obj) G_TYPE_CHECK_INSTANCE_TYPE(obj, XFSM_TYPE_CHOOSER) +#define XFSM_RESPONSE_LOAD 1 +#define XFSM_RESPONSE_NEW 2 + typedef struct _XfsmChooser XfsmChooser; typedef struct _XfsmChooserClass XfsmChooserClass; -typedef struct _XfsmChooserSession XfsmChooserSession; struct _XfsmChooserClass { @@ -46,34 +47,20 @@ struct _XfsmChooser { GtkDialog dialog; - GtkWidget *radio_load; - GtkWidget *radio_create; GtkWidget *tree; - GtkWidget *name; - GtkWidget *start; GtkTooltips *tooltips; - - XfceRc *session_rc; - gchar *session_default; }; -struct _XfsmChooserSession -{ - gchar *name; - time_t atime; -}; +GType xfsm_chooser_get_type (void) G_GNUC_CONST; -typedef enum _XfsmChooserReturn -{ - XFSM_CHOOSER_CREATE, - XFSM_CHOOSER_LOAD, - XFSM_CHOOSER_LOGOUT, -} XfsmChooserReturn; +void xfsm_chooser_set_sessions (XfsmChooser *chooser, + GList *sessions, + const gchar *default_session); -GType xfsm_chooser_get_type (void) G_GNUC_CONST; -XfsmChooserReturn xfsm_chooser_run (XfsmChooser *chooser, gchar **name); +gchar *xfsm_chooser_get_session (const XfsmChooser *chooser); G_END_DECLS; + #endif /* !__XFSM_CHOOSER_H__ */ |