diff options
author | Bastien Nocera <[email protected]> | 2017-07-11 10:40:05 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-01-18 23:46:03 +0100 |
commit | 8f6e3df4ce1b570a9f71ed0383427b85b4378144 (patch) | |
tree | f2d8ee1b53b515c5303b0e102f0b2782f8b06dfe | |
parent | 5d1f7e3d63ae6097e4b36ee2f89b06b56fea1f52 (diff) | |
download | mate-desktop-8f6e3df4ce1b570a9f71ed0383427b85b4378144.tar.bz2 mate-desktop-8f6e3df4ce1b570a9f71ed0383427b85b4378144.tar.xz |
thumbnail: Remove obsolete pixbuf helper
https://bugzilla.gnome.org/show_bug.cgi?id=785198
origin commit:
https://gitlab.gnome.org/GNOME/gnome-desktop/commit/2887d75
-rw-r--r-- | docs/reference/mate-desktop/mate-desktop-sections.txt | 1 | ||||
-rw-r--r-- | libmate-desktop/Makefile.am | 1 | ||||
-rw-r--r-- | libmate-desktop/mate-desktop-thumbnail.h | 14 | ||||
-rw-r--r-- | libmate-desktop/mate-desktop.abi | 1 | ||||
-rw-r--r-- | libmate-desktop/mate-thumbnail-pixbuf-utils.c | 65 | ||||
-rw-r--r-- | libmate-desktop/meson.build | 1 |
6 files changed, 0 insertions, 83 deletions
diff --git a/docs/reference/mate-desktop/mate-desktop-sections.txt b/docs/reference/mate-desktop/mate-desktop-sections.txt index 9e919c3..488ec5f 100644 --- a/docs/reference/mate-desktop/mate-desktop-sections.txt +++ b/docs/reference/mate-desktop/mate-desktop-sections.txt @@ -240,7 +240,6 @@ mate_desktop_thumbnail_has_uri mate_desktop_thumbnail_is_valid mate_desktop_thumbnail_md5 mate_desktop_thumbnail_path_for_uri -mate_desktop_thumbnail_scale_down_pixbuf </SECTION> <SECTION> diff --git a/libmate-desktop/Makefile.am b/libmate-desktop/Makefile.am index 63e5479..75d00b4 100644 --- a/libmate-desktop/Makefile.am +++ b/libmate-desktop/Makefile.am @@ -38,7 +38,6 @@ CLEANFILES = introspection_sources = \ mate-desktop-utils.c \ mate-desktop-thumbnail.c \ - mate-thumbnail-pixbuf-utils.c \ mate-dconf.c \ mate-gsettings.c \ mate-bg.c \ diff --git a/libmate-desktop/mate-desktop-thumbnail.h b/libmate-desktop/mate-desktop-thumbnail.h index 60bac99..de53611 100644 --- a/libmate-desktop/mate-desktop-thumbnail.h +++ b/libmate-desktop/mate-desktop-thumbnail.h @@ -98,20 +98,6 @@ char * mate_desktop_thumbnail_md5 (const char *uri); char * mate_desktop_thumbnail_path_for_uri (const char *uri, MateDesktopThumbnailSize size); - -/* Pixbuf utils */ - -#ifndef __GTK_DOC_IGNORE__ -#define MATE_DESKTOP_DEPRECATED_IN_1_24_FOR(f) G_DEPRECATED_FOR(f) extern -#else -#define MATE_DESKTOP_DEPRECATED_IN_1_24_FOR(f) extern -#endif - -MATE_DESKTOP_DEPRECATED_IN_1_24_FOR(gdk_pixbuf_scale_simple) -GdkPixbuf *mate_desktop_thumbnail_scale_down_pixbuf (GdkPixbuf *pixbuf, - int dest_width, - int dest_height); - G_END_DECLS #endif /* MATE_DESKTOP_THUMBNAIL_H */ diff --git a/libmate-desktop/mate-desktop.abi b/libmate-desktop/mate-desktop.abi index df4617f..de3b4dd 100644 --- a/libmate-desktop/mate-desktop.abi +++ b/libmate-desktop/mate-desktop.abi @@ -131,7 +131,6 @@ mate_desktop_thumbnail_has_uri mate_desktop_thumbnail_is_valid mate_desktop_thumbnail_md5 mate_desktop_thumbnail_path_for_uri -mate_desktop_thumbnail_scale_down_pixbuf mate_gdk_spawn_command_line_on_screen mate_get_all_locales mate_get_country_from_code diff --git a/libmate-desktop/mate-thumbnail-pixbuf-utils.c b/libmate-desktop/mate-thumbnail-pixbuf-utils.c deleted file mode 100644 index ee00655..0000000 --- a/libmate-desktop/mate-thumbnail-pixbuf-utils.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * mate-thumbnail-pixbuf-utils.c: Utilities for handling pixbufs when thumbnailing - * - * 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]> - */ - -#include <config.h> - -#include <stdlib.h> -#include <string.h> -#include <glib.h> - -#define MATE_DESKTOP_USE_UNSTABLE_API -#include "mate-desktop-thumbnail.h" - -/** - * mate_desktop_thumbnail_scale_down_pixbuf: - * @pixbuf: a #GdkPixbuf - * @dest_width: the desired new width - * @dest_height: the desired new height - * - * Scales the pixbuf to the desired size. This function - * used to be a lot faster than gdk-pixbuf when scaling - * down by large amounts. This is not true anymore since - * gdk-pixbuf UNRELEASED. You should use - * gdk_pixbuf_scale_simple() instead, which this function - * now does internally. - * - * Return value: (transfer full): a scaled pixbuf - * - * Since: 2.2 - **/ -GdkPixbuf * -mate_desktop_thumbnail_scale_down_pixbuf (GdkPixbuf *pixbuf, - int dest_width, - int dest_height) -{ - g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL); - g_return_val_if_fail (gdk_pixbuf_get_width (pixbuf) >= dest_width, NULL); - g_return_val_if_fail (gdk_pixbuf_get_height (pixbuf) >= dest_height, NULL); - - if (dest_width == 0 || dest_height == 0) - return NULL; - - return gdk_pixbuf_scale_simple (pixbuf, dest_width, dest_height, GDK_INTERP_HYPER); -} diff --git a/libmate-desktop/meson.build b/libmate-desktop/meson.build index 576788a..1fd0569 100644 --- a/libmate-desktop/meson.build +++ b/libmate-desktop/meson.build @@ -28,7 +28,6 @@ sources = files( 'mate-desktop-item.c', 'mate-desktop-utils.c', 'mate-desktop-thumbnail.c', - 'mate-thumbnail-pixbuf-utils.c', 'mate-dconf.c', 'mate-gsettings.c', 'mate-bg.c', |