summaryrefslogtreecommitdiff
path: root/xfce4-session/xfsm-chooser.h
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2020-12-23 06:03:14 -0700
committerYves-Alexis Perez <corsac@debian.org>2020-12-23 06:03:14 -0700
commit59a58d510b83a1d4d20a9c2dcf0db409b308040d (patch)
tree5d11755353dc01399e6a832bb197d9509259824d /xfce4-session/xfsm-chooser.h
downloadxfce4-session-59a58d510b83a1d4d20a9c2dcf0db409b308040d.tar.gz
Import xfce4-session_4.16.0.orig.tar.bz2
[dgit import orig xfce4-session_4.16.0.orig.tar.bz2]
Diffstat (limited to 'xfce4-session/xfsm-chooser.h')
-rw-r--r--xfce4-session/xfsm-chooser.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/xfce4-session/xfsm-chooser.h b/xfce4-session/xfsm-chooser.h
new file mode 100644
index 0000000..e75f60a
--- /dev/null
+++ b/xfce4-session/xfsm-chooser.h
@@ -0,0 +1,64 @@
+/* $Id$ */
+/*-
+ * Copyright (c) 2004 Benedikt Meurer <benny@xfce.org>
+ * All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA.
+ */
+
+#ifndef __XFSM_CHOOSER_H__
+#define __XFSM_CHOOSER_H__
+
+#include <gtk/gtk.h>
+
+
+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;
+
+struct _XfsmChooserClass
+{
+ GtkDialogClass parent_class;
+};
+
+struct _XfsmChooser
+{
+ GtkDialog dialog;
+
+ GtkWidget *tree;
+};
+
+GType xfsm_chooser_get_type (void) G_GNUC_CONST;
+
+void xfsm_chooser_set_sessions (XfsmChooser *chooser,
+ GList *sessions,
+ const gchar *default_session);
+
+gchar *xfsm_chooser_get_session (const XfsmChooser *chooser);
+
+G_END_DECLS;
+
+
+#endif /* !__XFSM_CHOOSER_H__ */