1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * brasero 4 * Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr> 5 * 6 * Brasero is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * brasero is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14 * See the GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with brasero. If not, write to: 18 * The Free Software Foundation, Inc., 19 * 51 Franklin Street, Fifth Floor 20 * Boston, MA 02110-1301, USA. 21 */ 22 23 #ifdef HAVE_CONFIG_H 24 # include <config.h> 25 #endif 26 27 #ifdef BUILD_PREVIEW 28 29 #ifndef _BRASERO_PREVIEW_H_ 30 #define _BRASERO_PREVIEW_H_ 31 32 #include <glib-object.h> 33 #include <gtk/gtk.h> 34 35 #include "brasero-uri-container.h" 36 37 G_BEGIN_DECLS 38 39 #define BRASERO_TYPE_PREVIEW (brasero_preview_get_type ()) 40 #define BRASERO_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_PREVIEW, BraseroPreview)) 41 #define BRASERO_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_PREVIEW, BraseroPreviewClass)) 42 #define BRASERO_IS_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_PREVIEW)) 43 #define BRASERO_IS_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_PREVIEW)) 44 #define BRASERO_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_PREVIEW, BraseroPreviewClass)) 45 46 typedef struct _BraseroPreviewClass BraseroPreviewClass; 47 typedef struct _BraseroPreview BraseroPreview; 48 49 struct _BraseroPreviewClass 50 { 51 GtkAlignmentClass parent_class; 52 }; 53 54 struct _BraseroPreview 55 { 56 GtkAlignment parent_instance; 57 }; 58 59 GType brasero_preview_get_type (void) G_GNUC_CONST; 60 GtkWidget *brasero_preview_new (void); 61 62 void 63 brasero_preview_add_source (BraseroPreview *preview, 64 BraseroURIContainer *source); 65 66 void 67 brasero_preview_hide (BraseroPreview *preview); 68 69 void 70 brasero_preview_set_enabled (BraseroPreview *self, 71 gboolean preview); 72 73 G_END_DECLS 74 75 #endif /* _BRASERO_PREVIEW_H_ */ 76 77 #endif /* BUILD_PREVIEW */ 78