]> Pileus Git - ~andy/gtk/blob - gtk/gtkfilechooserbutton.h
151bbaf5e9b3e4d942a806eaabe5717b1ea1afe8
[~andy/gtk] / gtk / gtkfilechooserbutton.h
1 /* GTK+: gtkfilechooserbutton.h
2  * 
3  * Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GTK_FILE_CHOOSER_BUTTON_H__
22 #define __GTK_FILE_CHOOSER_BUTTON_H__ 1
23
24 #include "gtkhbox.h"
25 #include "gtkfilechooser.h"
26
27 G_BEGIN_DECLS
28
29
30 #define GTK_TYPE_FILE_CHOOSER_BUTTON \
31   (gtk_file_chooser_button_get_type ())
32 #define GTK_FILE_CHOOSER_BUTTON(object) \
33   (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton))
34 #define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) \
35   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
36 #define GTK_IS_FILE_CHOOSER_BUTTON(object) \
37   (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_FILE_CHOOSER_BUTTON))
38 #define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) \
39   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON))
40 #define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(object) \
41   (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
42
43
44 typedef struct _GtkFileChooserButton GtkFileChooserButton;
45 typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
46 typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
47
48 struct _GtkFileChooserButton
49 {
50   /* <private> */
51   GtkHBox parent;
52
53   GtkFileChooserButtonPrivate *priv;
54 };
55
56 struct _GtkFileChooserButtonClass
57 {
58   /* <private> */
59   GtkHBoxClass parent_class;
60
61   void (*__gtk_reserved1);
62   void (*__gtk_reserved2);
63   void (*__gtk_reserved3);
64   void (*__gtk_reserved4);
65   void (*__gtk_reserved5);
66   void (*__gtk_reserved6);
67   void (*__gtk_reserved7);
68   void (*__gtk_reserved8);
69 };
70
71
72 GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST;
73
74 GtkWidget *gtk_file_chooser_button_new                   (const gchar          *title);
75 GtkWidget *gtk_file_chooser_button_new_with_backend      (const gchar          *title,
76                                                           const gchar          *backend);
77 GtkWidget *gtk_file_chooser_button_new_with_dialog       (GtkWidget            *dialog);
78
79 G_CONST_RETURN gchar *gtk_file_chooser_button_get_title  (GtkFileChooserButton *button);
80 void                  gtk_file_chooser_button_set_title  (GtkFileChooserButton *button,
81                                                           const gchar          *title);
82 gboolean              gtk_file_chooser_button_get_active (GtkFileChooserButton *button);
83 void                  gtk_file_chooser_button_set_active (GtkFileChooserButton *button,
84                                                           gboolean              is_active);
85
86
87 G_END_DECLS
88
89 #endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */