1 /* 2 * Copyright (c) 2005-2006 Jean-François Wauthy (pollux@xfce.org) 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #ifndef __XFBURN_DATA_COMPOSITION_H__ 20 #define __XFBURN_DATA_COMPOSITION_H__ 21 22 #ifdef HAVE_CONFIG_H 23 #include <config.h> 24 #endif 25 26 #include <gtk/gtk.h> 27 28 G_BEGIN_DECLS 29 30 #define XFBURN_TYPE_DATA_COMPOSITION (xfburn_data_composition_get_type ()) 31 #define XFBURN_DATA_COMPOSITION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFBURN_TYPE_DATA_COMPOSITION, XfburnDataComposition)) 32 #define XFBURN_DATA_COMPOSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFBURN_TYPE_DATA_COMPOSITION, XfburnDataCompositionClass)) 33 #define XFBURN_IS_DATA_COMPOSITION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFBURN_TYPE_DATA_COMPOSITION)) 34 #define XFBURN_IS_DATA_COMPOSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFBURN_TYPE_DATA_COMPOSITION)) 35 #define XFBURN_DATA_COMPOSITION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFBURN_TYPE_DATA_COMPOSITION, XfburnDataCompositionClass)) 36 37 typedef struct 38 { 39 GtkVBox vbox; 40 } XfburnDataComposition; 41 42 typedef struct 43 { 44 GtkVBoxClass parent_class; 45 } XfburnDataCompositionClass; 46 47 enum 48 { 49 DATA_COMPOSITION_DND_TARGET_INSIDE, 50 DATA_COMPOSITION_DND_TARGET_TEXT_PLAIN, 51 DATA_COMPOSITION_DND_TARGET_TEXT_URI_LIST, 52 }; 53 54 GType xfburn_data_composition_get_type (void); 55 56 GtkWidget *xfburn_data_composition_new (void); 57 void xfburn_data_composition_add_files (XfburnDataComposition *content, GSList * filelist); 58 void xfburn_data_composition_hide_toolbar (XfburnDataComposition *content); 59 void xfburn_data_composition_show_toolbar (XfburnDataComposition *content); 60 61 62 G_END_DECLS 63 #endif 64