* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_FILE_CHOOSER_WIDGET_H__
#define __GTK_FILE_CHOOSER_WIDGET_H__
-#include "gtkfilechooser.h"
-#include <gtk/gtkvbox.h>
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkfilechooser.h>
+#include <gtk/gtkbox.h>
G_BEGIN_DECLS
#define GTK_IS_FILE_CHOOSER_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_WIDGET))
#define GTK_FILE_CHOOSER_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_WIDGET, GtkFileChooserWidgetClass))
-typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
-typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
-
+typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate;
+typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
-struct _GtkFileChooserWidgetClass
+struct _GtkFileChooserWidget
{
- GtkVBoxClass parent_class;
+ GtkBox parent_instance;
+
+ GtkFileChooserWidgetPrivate *priv;
};
-struct _GtkFileChooserWidget
+struct _GtkFileChooserWidgetClass
{
- GtkVBox parent_instance;
+ GtkBoxClass parent_class;
- GtkFileChooserWidgetPrivate *priv;
+ /* Padding for future expansion */
+ void (*_gtk_reserved1) (void);
+ void (*_gtk_reserved2) (void);
+ void (*_gtk_reserved3) (void);
+ void (*_gtk_reserved4) (void);
};
-GType gtk_file_chooser_widget_get_type (void);
+GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST;
GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action);
-GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action,
- const gchar *backend);
+
G_END_DECLS
#endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */