1 /* GTK+: gtkfilechooserbutton.h
3 * Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv>
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.
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.
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.
21 #ifndef __GTK_FILE_CHOOSER_BUTTON_H__
22 #define __GTK_FILE_CHOOSER_BUTTON_H__
24 #include <gtk/gtkhbox.h>
25 #include <gtk/gtkfilechooser.h>
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))
44 typedef struct _GtkFileChooserButton GtkFileChooserButton;
45 typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
46 typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
48 struct _GtkFileChooserButton
53 GtkFileChooserButtonPrivate *priv;
56 struct _GtkFileChooserButtonClass
59 GtkHBoxClass parent_class;
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);
72 GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST;
73 GtkWidget * gtk_file_chooser_button_new (const gchar *title);
74 GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title,
75 const gchar *backend);
76 GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog);
77 G_CONST_RETURN gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button);
78 void gtk_file_chooser_button_set_title (GtkFileChooserButton *button,
80 gboolean gtk_file_chooser_button_get_active (GtkFileChooserButton *button);
81 void gtk_file_chooser_button_set_active (GtkFileChooserButton *button,
87 #endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */