~ubuntu-branches/ubuntu/oneiric/evince/oneiric-updates

« back to all changes in this revision

Viewing changes to thumbnailer/evince-thumbnailer.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Josselin Mouette, Marc 'HE' Brockschmidt
  • Date: 2008-12-31 16:41:58 UTC
  • mfrom: (1.1.36 upstream)
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 109.
  • Revision ID: james.westby@ubuntu.com-20081231164158-xnobl1sokvvc6ho8
Tags: 2.24.2-1
[ Josselin Mouette ]
* README.Debian: document that you need to install poppler-data.
  Closes: #506836.

[ Marc 'HE' Brockschmidt ]
* debian/control: Make the Gnome team maintainer. I'm not doing the job
   anyway.

[ Josselin Mouette ]
* New upstream release.
* Require nautilus 2.22 to build the extension for the correct 
  version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        EvRenderContext *rc;
66
66
        double width, height;
67
67
        GdkPixbuf *pixbuf;
68
 
 
69
 
        ev_document_get_page_size (document, 0, &width, &height);
70
 
 
71
 
        rc = ev_render_context_new (0, 0, size / width);
 
68
        EvPage *page;
 
69
 
 
70
        page = ev_document_get_page (document, 0);
 
71
        
 
72
        ev_document_get_page_size (document, page, &width, &height);
 
73
 
 
74
        rc = ev_render_context_new (page, 0, size / width);
72
75
        pixbuf = ev_document_thumbnails_get_thumbnail (EV_DOCUMENT_THUMBNAILS (document),
73
76
                                                       rc, FALSE);
74
77
        g_object_unref (rc);
 
78
        g_object_unref (page);
75
79
        
76
80
        if (pixbuf != NULL) {
77
81
                const char *overlaid_icon_name = NULL;