Skip to content

Commit

Permalink
thumbnailer: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Persch authored and raveit65 committed Apr 8, 2018
1 parent e5c8ce7 commit c1a56c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
3 changes: 0 additions & 3 deletions thumbnailer/Makefile.am
Expand Up @@ -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 = \
Expand Down
28 changes: 0 additions & 28 deletions thumbnailer/atril-thumbnailer.c
Expand Up @@ -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;
Expand Down

0 comments on commit c1a56c9

Please sign in to comment.