Skip to content

Commit c1a56c9

Browse files
Christian Perschraveit65
Christian Persch
authored andcommitted
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
1 parent e5c8ce7 commit c1a56c9

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

thumbnailer/Makefile.am

-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ atril_thumbnailer_SOURCES = \
66
atril-thumbnailer.c
77

88
atril_thumbnailer_CPPFLAGS = \
9-
-DATRILDATADIR=\"$(pkgdatadir)\" \
109
-I$(top_srcdir) \
1110
-I$(top_builddir) \
12-
-DMATELOCALEDIR=\"$(datadir)/locale\" \
13-
-DMATEICONDIR=\""$(datadir)/pixmaps"\" \
1411
$(AM_CPPFLAGS)
1512

1613
atril_thumbnailer_CFLAGS = \

thumbnailer/atril-thumbnailer.c

-28
Original file line numberDiff line numberDiff line change
@@ -174,34 +174,6 @@ atril_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int siz
174174
g_object_unref (page);
175175

176176
if (pixbuf != NULL) {
177-
const char *overlaid_icon_name = NULL;
178-
179-
if (overlaid_icon_name) {
180-
GdkPixbuf *overlaid_pixbuf;
181-
182-
gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", ATRILDATADIR, overlaid_icon_name);
183-
overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL);
184-
g_free (overlaid_icon_path);
185-
if (overlaid_pixbuf != NULL) {
186-
int delta_height, delta_width;
187-
188-
delta_width = gdk_pixbuf_get_width (pixbuf) -
189-
gdk_pixbuf_get_width (overlaid_pixbuf);
190-
delta_height = gdk_pixbuf_get_height (pixbuf) -
191-
gdk_pixbuf_get_height (overlaid_pixbuf);
192-
193-
gdk_pixbuf_composite (overlaid_pixbuf, pixbuf,
194-
delta_width, delta_height,
195-
gdk_pixbuf_get_width (overlaid_pixbuf),
196-
gdk_pixbuf_get_height (overlaid_pixbuf),
197-
delta_width, delta_height,
198-
1, 1,
199-
GDK_INTERP_NEAREST, 100);
200-
201-
g_object_unref (overlaid_pixbuf);
202-
}
203-
}
204-
205177
if (gdk_pixbuf_save (pixbuf, thumbnail, "png", NULL, NULL)) {
206178
g_object_unref (pixbuf);
207179
return TRUE;

0 commit comments

Comments
 (0)