1 /*- 2 * Copyright (c) 2006 Benedikt Meurer <benny@xfce.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library 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 GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 17 * MA 02110-1301 USA 18 */ 19 20 #if !defined (EXO_COMPILATION) 21 #error "Only <exo/exo.h> can be included directly, this file is not part of the public API." 22 #endif 23 24 #ifndef __EXO_THUMBNAIL_PREVIEW_H__ 25 #define __EXO_THUMBNAIL_PREVIEW_H__ 26 27 #include <exo/exo-config.h> 28 29 #include <gtk/gtk.h> 30 31 G_BEGIN_DECLS 32 33 typedef struct _ExoThumbnailPreviewClass ExoThumbnailPreviewClass; 34 typedef struct _ExoThumbnailPreview ExoThumbnailPreview; 35 36 #define EXO_TYPE_THUMBNAIL_PREVIEW (exo_thumbnail_preview_get_type ()) 37 #define EXO_THUMBNAIL_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EXO_TYPE_THUMBNAIL_PREVIEW, ExoThumbnailPreview)) 38 #define EXO_THUMBNAIL_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EXO_TYPE_THUMBNAIL_PREVIEW, ExoThumbnailPreviewClass)) 39 #define EXO_IS_THUMBNAIL_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EXO_TYPE_THUMBNAIL_PREVIEW)) 40 #define EXO_IS_THUMBNAIL_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EXO_TYPE_THUMBNAIL_PREVIEW)) 41 #define EXO_THUMBNAIL_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EXO_TYPE_THUMBNAIL_PREVIEW, ExoThumbnailPreviewClass)) 42 43 G_GNUC_INTERNAL GType exo_thumbnail_preview_get_type (void) G_GNUC_CONST; 44 45 G_GNUC_INTERNAL GtkWidget *_exo_thumbnail_preview_new (void) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; 46 47 G_GNUC_INTERNAL void _exo_thumbnail_preview_set_uri (ExoThumbnailPreview *thumbnail_preview, 48 const gchar *uri); 49 50 G_END_DECLS 51 52 #endif /* !__EXO_THUMBNAIL_PREVIEW_H__ */ 53