1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 3 /* 4 * gtk-file-chooser-preview: image preview widget for the GtkFileChooser. 5 * 6 * Copyright (C) 2004 Free Software Foundation, Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, see <http://www.gnu.org/licenses/>. 20 * 21 * Author: Paolo Bacchilega 22 */ 23 24 #ifndef GTK_FILE_CHOOSER_PREVIEW_H 25 #define GTK_FILE_CHOOSER_PREVIEW_H 26 27 #include <gtk/gtk.h> 28 29 #define GTK_TYPE_FILE_CHOOSER_PREVIEW (gtk_file_chooser_preview_get_type ()) 30 #define GTK_FILE_CHOOSER_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_PREVIEW, GtkFileChooserPreview)) 31 #define GTK_FILE_CHOOSER_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_PREVIEW, GtkFileChooserPreviewClass)) 32 #define GTK_IS_FILE_CHOOSER_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_PREVIEW)) 33 #define GTK_IS_FILE_CHOOSER_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_PREVIEW)) 34 #define GTK_FILE_CHOOSER_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_FILE_CHOOSER_PREVIEW, GtkFileChooserPreviewClass)) 35 36 typedef struct _GtkFileChooserPreview GtkFileChooserPreview; 37 typedef struct _GtkFileChooserPreviewClass GtkFileChooserPreviewClass; 38 typedef struct _GtkFileChooserPreviewPrivateData GtkFileChooserPreviewPrivateData; 39 40 struct _GtkFileChooserPreview 41 { 42 GtkFrame __parent; 43 GtkFileChooserPreviewPrivateData *priv; 44 }; 45 46 struct _GtkFileChooserPreviewClass 47 { 48 GtkFrameClass __parent_class; 49 }; 50 51 GType gtk_file_chooser_preview_get_type (void); 52 GtkWidget * gtk_file_chooser_preview_new (void); 53 void gtk_file_chooser_preview_set_uri (GtkFileChooserPreview *player, 54 const char *uri); 55 const char * gtk_file_chooser_preview_get_uri (GtkFileChooserPreview *player); 56 57 #endif /* GTK_FILE_CHOOSER_PREVIEW_H */ 58