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

« back to all changes in this revision

Viewing changes to libdocument/ev-document-misc.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:
18
18
 */
19
19
 
20
20
#include <config.h>
21
 
#include "ev-document-misc.h"
 
21
 
22
22
#include <string.h>
 
23
 
23
24
#include <gtk/gtk.h>
24
25
 
 
26
#include "ev-document-misc.h"
 
27
 
25
28
/* Returns a new GdkPixbuf that is suitable for placing in the thumbnail view.
26
29
 * It is four pixels wider and taller than the source.  If source_pixbuf is not
27
30
 * NULL, then it will fill the return pixbuf with the contents of
220
223
                        p[3] = (has_alpha) ? p[3] : 0xff;
221
224
#else
222
225
                        tmp = p[0];
223
 
                        p[0] = (has_alpha) ? p[3] : 0xff;
224
 
                        p[3] = p[2];
225
 
                        p[2] = p[1];
226
 
                        p[1] = tmp;
 
226
                        p[0] = p[1];
 
227
                        p[1] = p[2];
 
228
                        p[2] = p[3];
 
229
                        p[3] = (has_alpha) ? tmp : 0xff;
227
230
#endif                  
228
231
                        p += pixbuf_n_channels;
229
232
                }