diff options
-rwxr-xr-x | gui.py | 2 | ||||
-rwxr-xr-x | iw/release_notes_viewer_gui.py | 2 | ||||
-rw-r--r-- | splashscreen.py | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1492,7 +1492,7 @@ class InstallControlState: gtk.gdk.INTERP_BILINEAR) (pixmap, mask) = pixbuf.render_pixmap_and_mask() - pixbuf.render_to_drawable(pixmap, gtk.gdk.gc_new(pixmap), 0, 0, 0, 0, + pixbuf.render_to_drawable(pixmap, gtk.gdk.GC(pixmap), 0, 0, 0, 0, pixbuf.get_width(), pixbuf.get_height(), gtk.gdk.RGB_DITHER_MAX, 0, 0) p = gtk.Image() diff --git a/iw/release_notes_viewer_gui.py b/iw/release_notes_viewer_gui.py index 1a7387d62..371ffc027 100755 --- a/iw/release_notes_viewer_gui.py +++ b/iw/release_notes_viewer_gui.py @@ -54,7 +54,7 @@ def exposeCB(widget, event, data): width = gtk.gdk.screen_width() height = gtk.gdk.screen_height() - gc = gtk.gdk.gc_new(widget.window) + gc = gtk.gdk.GC(widget.window) screenshot.render_to_drawable(widget.window, gc, 0, 0, diff --git a/splashscreen.py b/splashscreen.py index 7176b9398..44a0419fe 100644 --- a/splashscreen.py +++ b/splashscreen.py @@ -55,7 +55,7 @@ def splashScreenShow(configFileData): pixbuf = None if pixbuf: (pixmap, mask) = pixbuf.render_pixmap_and_mask() - pixbuf.render_to_drawable(pixmap, gtk.gdk.gc_new(pixmap), + pixbuf.render_to_drawable(pixmap, gtk.gdk.GC(pixmap), 0, 0, 0, 0, pixbuf.get_width(), pixbuf.get_height(), gtk.gdk.RGB_DITHER_MAX, 0, 0) |