Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 142439 Details for
Bug 179719
Wine-doors (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to kill rsvg
wine-doors-0.1.2-kill_rsvg.patch (text/plain), 2.18 KB, created by
Ivan Iakoupov
on 2008-02-01 22:37:02 UTC
(
hide
)
Description:
patch to kill rsvg
Filename:
MIME Type:
Creator:
Ivan Iakoupov
Created:
2008-02-01 22:37:02 UTC
Size:
2.18 KB
patch
obsolete
>diff -urN wine-doors-0.1.2/src/ctile.py wine-doors-0.1.2-work/src/ctile.py >--- wine-doors-0.1.2/src/ctile.py 2008-01-20 18:46:19.000000000 +0100 >+++ wine-doors-0.1.2-work/src/ctile.py 2008-02-01 22:31:21.000000000 +0100 >@@ -1,4 +1,4 @@ >-import cairo, rsvg, math >+import cairo, math > from const import * > from preferences import preferences > import os >@@ -222,17 +222,7 @@ > self.cr.translate( self.padding, self.padding ) > > if self.icon.endswith( ".svg" ): >- # Render SVG files >- try: >- i_svg = rsvg.Handle( self.icon ) >- self.icon_width = ( float( self.icon_height )/float( i_svg.props.height ) ) * float( i_svg.props.width ) >- self.cr.translate( ( self.icon_height - self.icon_width )/2, 0 ) >- if i_svg.props.width > 1 and i_svg.props.height > 1 and self.icon_width > 1: >- self.cr.scale( float( self.icon_width )/float( i_svg.props.width ), >- float( self.icon_height )/float( i_svg.props.height ) ) >- i_svg.render_cairo( self.cr ) >- except: >- pass >+ pass > elif self.icon.endswith( ".png" ): > # Render PNG files > try: >@@ -347,14 +337,7 @@ > self.cr.translate( self.width - self.height + self.padding, self.padding ) > > if self.status_image.endswith( ".svg" ): >- # Render SVG files >- i_svg = rsvg.Handle( self.status_image ) >- width = ( float( self.icon_height )/float( i_svg.props.height ) ) * float( i_svg.props.width ) >- self.cr.translate( ( self.icon_height - self.icon_width )/2, 0 ) >- if i_svg.props.width > 1 and i_svg.props.height > 1 and self.icon_width > 1: >- self.cr.scale( float( width )/float( i_svg.props.width ), >- float( self.icon_height )/float( i_svg.props.height ) ) >- i_svg.render_cairo( self.cr ) >+ pass > elif self.status_image.endswith( ".png" ): > # Render PNG files > image = cairo.ImageSurface.create_from_png ( self.status_image )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179719
:
120309
|
120313
|
120330
|
120350
|
120351
|
121358
|
124322
|
129861
|
141748
| 142439 |
183227
|
183294