mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
f290a4226d
adds a JPEG-specific thumbnailing function that's faster than the exiting thumbnail code. This new code is only included if the libjpeg library is present at configure time. We still need RPM spec file changes to require this library if we are going to build RPMs on systems that have libjpeg. I fixed a few bugs in Alex's original patch and made some coding style tweaks as well. * acconfig.h: * configure.in: Added a check for libjpeg. * libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-thumbnails-jpeg.c: * libnautilus-extensions/nautilus-thumbnails-jpeg.h: Add new source files with JPEG thumbnailer. * libnautilus-extensions/nautilus-thumbnails.c: (make_thumbnails): Call the new function for JPEG files. Other changes. * libnautilus-extensions/nautilus-volume-monitor.c: Change interval back to 2 seconds. * libnautilus-extensions/nautilus-preferences.c: (preferences_set_storage_path): Fix storage leak. (nautilus_self_check_preferences): Added more checks. * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_icon_factory_get_icon_for_file): Tiny code tweak.
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
|
|
|
|
nautilus-thumbnails-jpeg.h: Fast loading of scaled jpeg images
|
|
|
|
Copyright (C) 2001 Red Hat, Inc
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program 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
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public
|
|
License along with this program; if not, write to the
|
|
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
Author: Alexander Larsson <alexl@redhat.com>
|
|
*/
|
|
|
|
#ifndef NAUTILUS_THUMBNAILS_JPEG_H
|
|
#define NAUTILUS_THUMBNAILS_JPEG_H
|
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
|
|
GdkPixbuf *nautilus_thumbnail_load_scaled_jpeg (const char *uri,
|
|
int target_width,
|
|
int target_heigh);
|
|
|
|
#endif /* NAUTILUS_THUMBNAILS_JPEG_H */
|