psppire-cell-renderer-button: Add "slash" property.
[pspp] / src / ui / gui / psppire-button-editable.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2011, 2012 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef PSPPIRE_BUTTON_EDITABLE_H
18 #define PSPPIRE_BUTTON_EDITABLE_H 1
19
20 #include <gtk/gtk.h>
21
22 G_BEGIN_DECLS
23
24 #define PSPPIRE_TYPE_BUTTON_EDITABLE             (psppire_button_editable_get_type())
25 #define PSPPIRE_BUTTON_EDITABLE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj),PSPPIRE_TYPE_BUTTON_EDITABLE,PsppireButtonEditable))
26 #define PSPPIRE_BUTTON_EDITABLE_CLASS(class)     (G_TYPE_CHECK_CLASS_CAST ((class),PSPPIRE_TYPE_BUTTON_EDITABLE,PsppireButtonEditableClass))
27 #define PSPPIRE_IS_BUTTON_EDITABLE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj),PSPPIRE_TYPE_BUTTON_EDITABLE))
28 #define PSPPIRE_IS_BUTTON_EDITABLE_CLASS(class)  (G_TYPE_CHECK_CLASS_TYPE ((class),PSPPIRE_TYPE_BUTTON_EDITABLE))
29 #define PSPPIRE_BUTTON_EDITABLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj),PSPPIRE_TYPE_BUTTON_EDITABLE,PsppireButtonEditableClass))
30
31 typedef struct _PsppireButtonEditable      PsppireButtonEditable;
32 typedef struct _PsppireButtonEditableClass PsppireButtonEditableClass;
33
34 struct _PsppireButtonEditable {
35   GtkButton parent;
36   gchar *path;
37   gboolean slash;
38 };
39
40 struct _PsppireButtonEditableClass {
41   GtkButtonClass parent_class;
42 };
43
44 GType psppire_button_editable_get_type (void) G_GNUC_CONST;
45 PsppireButtonEditable* psppire_button_editable_new (void);
46
47 void psppire_button_editable_set_slash (PsppireButtonEditable *,
48                                         gboolean slash);
49 gboolean psppire_button_editable_get_slash (const PsppireButtonEditable *);
50
51 G_END_DECLS
52
53 #endif /* PSPPIRE_BUTTON_EDITABLE_H */