X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=thumbnailer%2Fevince-thumbnailer.c;h=94d6b77ea334d3b676aa9ba4f2f840ea819d6ecd;hb=671655393d655c3ab62fdf671beec9922b7ec7f1;hp=6ec0f6c4fb28b3589ab4ee82b39c06a02c174482;hpb=fd7c1a68733c5718b9cb0fdcbed09be1889c1140;p=evince.git diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c index 6ec0f6c4..94d6b77e 100644 --- a/thumbnailer/evince-thumbnailer.c +++ b/thumbnailer/evince-thumbnailer.c @@ -13,7 +13,7 @@ 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. + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include @@ -26,12 +26,11 @@ #include #ifdef G_OS_WIN32 -#ifdef DATADIR -#undef DATADIR -#endif #include #include -#define _WIN32_WINNT 0x0500 +#if !(_WIN32_WINNT >= 0x0500) +#error "_WIN32_WINNT must be defined >= 0x0500" +#endif #include #endif @@ -138,8 +137,7 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si ev_document_get_page_size (document, 0, &width, &height); rc = ev_render_context_new (page, 0, size / width); - pixbuf = ev_document_thumbnails_get_thumbnail (EV_DOCUMENT_THUMBNAILS (document), - rc, FALSE); + pixbuf = ev_document_get_thumbnail (document, rc); g_object_unref (rc); g_object_unref (page); @@ -154,7 +152,7 @@ evince_thumbnail_pngenc_get (EvDocument *document, const char *thumbnail, int si gchar *overlaid_icon_path = g_build_filename (dir, "share", "evince", overlaid_icon_name, NULL); g_free (dir); #else - gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", DATADIR, overlaid_icon_name); + gchar *overlaid_icon_path = g_strdup_printf ("%s/%s", EVINCEDATADIR, overlaid_icon_name); #endif overlaid_pixbuf = gdk_pixbuf_new_from_file (overlaid_icon_path, NULL); g_free (overlaid_icon_path); @@ -271,12 +269,6 @@ main (int argc, char *argv[]) return -2; } - if (!EV_IS_DOCUMENT_THUMBNAILS (document)) { - g_object_unref (document); - ev_shutdown (); - return -2; - } - if (EV_IS_ASYNC_RENDERER (document)) { struct AsyncData data;