summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <[email protected]>2012-06-12 20:07:20 +0200
committerraveit65 <[email protected]>2018-04-08 13:15:04 +0200
commit62ca1c0f5e3caf27650be9774ffd231a47da267d (patch)
treec371b007c2651fa7bb3ad2b58ac792b5dbbccad1
parent027a6581125c209d5f495877657af9e0fcb99678 (diff)
downloadatril-62ca1c0f5e3caf27650be9774ffd231a47da267d.tar.bz2
atril-62ca1c0f5e3caf27650be9774ffd231a47da267d.tar.xz
thumbnailer: Remove unused code
The code to overlay an icon is unused since commit https://git.gnome.org/browse/evince/commit/?id=808285c origin commit: https://git.gnome.org/browse/evince/commit/?id=171918f
-rw-r--r--thumbnailer/Makefile.am3
-rw-r--r--thumbnailer/atril-thumbnailer.c28
2 files changed, 0 insertions, 31 deletions
diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am
index 0f01eeb2..4953dd52 100644
--- a/thumbnailer/Makefile.am
+++ b/thumbnailer/Makefile.am
@@ -6,11 +6,8 @@ atril_thumbnailer_SOURCES = \
atril-thumbnailer.c
atril_thumbnailer_CPPFLAGS = \
- -DATRILDATADIR=\"$(pkgdatadir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
- -DMATELOCALEDIR=\"$(datadir)/locale\" \
- -DMATEICONDIR=\""$(datadir)/pixmaps"\" \
$(AM_CPPFLAGS)
atril_thumbnailer_CFLAGS = \
diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c
index 6e189040..a6875386 100644
--- a/thumbnailer/atril-thumbnailer.c
+++ b/thumbnailer/atril-thumbnailer.c
@@ -174,34 +174,6 @@ atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int siz
g_object_unref (page);
if (pixbuf != NULL) {
- const char *overlaid_icon_name = NULL;
-
- if (overlaid_icon_name) {
- GdkPixbuf *overlaid_pixbuf;
-
- gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", ATRILDATADIR, overlaid_icon_name);
- overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL);
- g_free (overlaid_icon_path);
- if (overlaid_pixbuf != NULL) {
- int delta_height, delta_width;
-
- delta_width = gdk_pixbuf_get_width (pixbuf) -
- gdk_pixbuf_get_width (overlaid_pixbuf);
- delta_height = gdk_pixbuf_get_height (pixbuf) -
- gdk_pixbuf_get_height (overlaid_pixbuf);
-
- gdk_pixbuf_composite (overlaid_pixbuf, pixbuf,
- delta_width, delta_height,
- gdk_pixbuf_get_width (overlaid_pixbuf),
- gdk_pixbuf_get_height (overlaid_pixbuf),
- delta_width, delta_height,
- 1, 1,
- GDK_INTERP_NEAREST, 100);
-
- g_object_unref (overlaid_pixbuf);
- }
- }
-
if (gdk_pixbuf_save (pixbuf, thumbnail, "png", NULL, NULL)) {
g_object_unref (pixbuf);
return TRUE;