diff options
author | Stefano Karapetsas <[email protected]> | 2013-07-24 01:47:46 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-07-24 01:47:46 +0200 |
commit | 09721cdade56cdc1460edee25c17257387c837f9 (patch) | |
tree | fe4e8a0fddf1a2562c5ab0c3eec9e41babc31ea4 /libmate-desktop/libmateui/mate-desktop-thumbnail.h | |
parent | caaabf7a11fa272a55b3dc2ac490d47df885ff9c (diff) | |
download | mate-desktop-09721cdade56cdc1460edee25c17257387c837f9.tar.bz2 mate-desktop-09721cdade56cdc1460edee25c17257387c837f9.tar.xz |
Move include files and remove old libmate and libmateui folders
Diffstat (limited to 'libmate-desktop/libmateui/mate-desktop-thumbnail.h')
-rw-r--r-- | libmate-desktop/libmateui/mate-desktop-thumbnail.h | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/libmate-desktop/libmateui/mate-desktop-thumbnail.h b/libmate-desktop/libmateui/mate-desktop-thumbnail.h deleted file mode 100644 index 775348b..0000000 --- a/libmate-desktop/libmateui/mate-desktop-thumbnail.h +++ /dev/null @@ -1,114 +0,0 @@ -/* - * mate-thumbnail.h: Utilities for handling thumbnails - * - * Copyright (C) 2002 Red Hat, Inc. - * - * This file is part of the Mate Library. - * - * The Mate Library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * The Mate Library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with the Mate Library; see the file COPYING.LIB. If not, - * write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301, USA. - * - * Author: Alexander Larsson <[email protected]> - */ - -#ifndef MATE_DESKTOP_THUMBNAIL_H -#define MATE_DESKTOP_THUMBNAIL_H - -#ifndef MATE_DESKTOP_USE_UNSTABLE_API -#error MateDesktopThumbnail is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-desktop-thumbnail.h -#endif - -#include <glib.h> -#include <glib-object.h> -#include <time.h> -#include <gdk-pixbuf/gdk-pixbuf.h> - -#ifdef __cplusplus -extern "C" { -#endif - -typedef enum { - MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL, - MATE_DESKTOP_THUMBNAIL_SIZE_LARGE -} MateDesktopThumbnailSize; - -#define MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY (mate_desktop_thumbnail_factory_get_type ()) -#define MATE_DESKTOP_THUMBNAIL_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY, MateDesktopThumbnailFactory)) -#define MATE_DESKTOP_THUMBNAIL_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY, MateDesktopThumbnailFactoryClass)) -#define MATE_DESKTOP_IS_THUMBNAIL_FACTORY(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY)) -#define MATE_DESKTOP_IS_THUMBNAIL_FACTORY_CLASS(klass) (G_TYPE_CLASS_CHECK_CLASS_TYPE ((klass), MATE_DESKTOP_TYPE_THUMBNAIL_FACTORY)) - -typedef struct _MateDesktopThumbnailFactory MateDesktopThumbnailFactory; -typedef struct _MateDesktopThumbnailFactoryClass MateDesktopThumbnailFactoryClass; -typedef struct _MateDesktopThumbnailFactoryPrivate MateDesktopThumbnailFactoryPrivate; - -struct _MateDesktopThumbnailFactory { - GObject parent; - - MateDesktopThumbnailFactoryPrivate *priv; -}; - -struct _MateDesktopThumbnailFactoryClass { - GObjectClass parent; -}; - -GType mate_desktop_thumbnail_factory_get_type (void); -MateDesktopThumbnailFactory *mate_desktop_thumbnail_factory_new (MateDesktopThumbnailSize size); - -char * mate_desktop_thumbnail_factory_lookup (MateDesktopThumbnailFactory *factory, - const char *uri, - time_t mtime); - -gboolean mate_desktop_thumbnail_factory_has_valid_failed_thumbnail (MateDesktopThumbnailFactory *factory, - const char *uri, - time_t mtime); -gboolean mate_desktop_thumbnail_factory_can_thumbnail (MateDesktopThumbnailFactory *factory, - const char *uri, - const char *mime_type, - time_t mtime); -GdkPixbuf * mate_desktop_thumbnail_factory_generate_thumbnail (MateDesktopThumbnailFactory *factory, - const char *uri, - const char *mime_type); -void mate_desktop_thumbnail_factory_save_thumbnail (MateDesktopThumbnailFactory *factory, - GdkPixbuf *thumbnail, - const char *uri, - time_t original_mtime); -void mate_desktop_thumbnail_factory_create_failed_thumbnail (MateDesktopThumbnailFactory *factory, - const char *uri, - time_t mtime); - - -/* Thumbnailing utils: */ -gboolean mate_desktop_thumbnail_has_uri (GdkPixbuf *pixbuf, - const char *uri); -gboolean mate_desktop_thumbnail_is_valid (GdkPixbuf *pixbuf, - const char *uri, - time_t mtime); -char * mate_desktop_thumbnail_md5 (const char *uri); -char * mate_desktop_thumbnail_path_for_uri (const char *uri, - MateDesktopThumbnailSize size); - - -/* Pixbuf utils */ - -GdkPixbuf *mate_desktop_thumbnail_scale_down_pixbuf (GdkPixbuf *pixbuf, - int dest_width, - int dest_height); - -#ifdef __cplusplus -} -#endif - -#endif /* MATE_DESKTOP_THUMBNAIL_H */ |