1/* This library is free software; you can redistribute it and/or
2 * modify it under the terms of the GNU Lesser General Public
3 * License as published by the Free Software Foundation; either
4 * version 2 of the License, or (at your option) any later version.
5 *
6 * This library is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 * Lesser General Public License for more details.
10 *
11 * You should have received a copy of the GNU Lesser General Public
12 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
13 */
14
15#ifndef __GTK_FILE_CHOOSER_ERROR_STACK_H__
16#define __GTK_FILE_CHOOSER_ERROR_STACK_H__
17
18
19#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
20#error "Only <gtk/gtk.h> can be included directly."
21#endif
22
23#include "gtkstack.h"
24
25G_BEGIN_DECLS
26
27#define GTK_TYPE_FILE_CHOOSER_ERROR_STACK (gtk_file_chooser_error_stack_get_type ())
28#define GTK_FILE_CHOOSER_ERROR_STACK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_ERROR_STACK, GtkFileChooserErrorStack))
29#define GTK_FILE_CHOOSER_ERROR_STACK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_ERROR_STACK, GtkFileChooserErrorStackClass))
30#define GTK_IS_FILE_CHOOSER_ERROR_STACK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_ERROR_STACK))
31#define GTK_IS_FILE_CHOOSER_ERROR_STACK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_ERROR_STACK))
32#define GTK_FILE_CHOOSER_ERROR_STACK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_ERROR_STACK, GtkFileChooserErrorStackClass))
33
34typedef struct _GtkFileChooserErrorStack GtkFileChooserErrorStack;
35typedef struct _GtkFileChooserErrorStackClass GtkFileChooserErrorStackClass;
36
37struct _GtkFileChooserErrorStack
38{
39 GtkWidget parent_instance;
40
41 GtkWidget *stack;
42};
43
44struct _GtkFileChooserErrorStackClass
45{
46 GtkWidgetClass parent_class;
47};
48
49GType gtk_file_chooser_error_stack_get_type (void) G_GNUC_CONST;
50
51void gtk_file_chooser_error_stack_set_error (GtkFileChooserErrorStack *self,
52 gboolean is_folder,
53 const char *label_name);
54
55void gtk_file_chooser_error_stack_set_custom_error (GtkFileChooserErrorStack *self,
56 const char *label_text);
57
58G_END_DECLS
59
60#endif
61

source code of gtk/gtk/gtkfilechoosererrorstackprivate.h