~ubuntu-branches/ubuntu/saucy/nautilus-dropbox/saucy

« back to all changes in this revision

Viewing changes to .pc/fix-path-of-desktop-file.patch/serializeimages.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2011-10-29 16:28:59 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20111029162859-tk6xyv31rbfxlwt1
Tags: 0.7.0-2
Fix the distribution in the changelog entry for version 0.7.0-1
(UNRELEASED → unstable).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys
 
2
import gtk
 
3
 
 
4
pixbuf64 = gtk.gdk.pixbuf_new_from_file("data/icons/hicolor/64x64/apps/dropbox.png")
 
5
pixbuf16 = gtk.gdk.pixbuf_new_from_file("data/icons/hicolor/16x16/apps/dropbox.png")
 
6
sys.stdout.write(sys.stdin.read().replace\
 
7
                     ('@IMAGEDATA64@', "gtk.gdk.pixbuf_new_from_data(%r, gtk.gdk.COLORSPACE_RGB, %r, %r, %r, %r, %r)" % \
 
8
                          (pixbuf64.get_pixels(), pixbuf64.get_has_alpha(), pixbuf64.get_bits_per_sample(),
 
9
                           pixbuf64.get_width(), pixbuf64.get_height(), pixbuf64.get_rowstride())).replace\
 
10
                     ('@IMAGEDATA16@', "gtk.gdk.pixbuf_new_from_data(%r, gtk.gdk.COLORSPACE_RGB, %r, %r, %r, %r, %r)" % \
 
11
                          (pixbuf16.get_pixels(), pixbuf16.get_has_alpha(), pixbuf16.get_bits_per_sample(),
 
12
                           pixbuf16.get_width(), pixbuf16.get_height(), pixbuf16.get_rowstride())).replace\
 
13
                     ('@PACKAGE_VERSION@', sys.argv[1]))
 
14