Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/sugar/graphics/window.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-11-04 16:00:48 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-11-04 16:00:48 (GMT)
commit108147a6b1ee82250db00e7cf0a925773786c9b4 (patch)
treeff1fda819a6df2f4fe9f91e903672997fc9978e2 /lib/sugar/graphics/window.py
parentcd61c52c7ba3649e1d1a4a049dd284ea4b5dd998 (diff)
Hook up the new screenshot code
Diffstat (limited to 'lib/sugar/graphics/window.py')
-rw-r--r--lib/sugar/graphics/window.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/sugar/graphics/window.py b/lib/sugar/graphics/window.py
index bfaad35..003f870 100644
--- a/lib/sugar/graphics/window.py
+++ b/lib/sugar/graphics/window.py
@@ -114,16 +114,3 @@ class Window(gtk.Window):
self.tray.props.visible = not self.tray.props.visible
return True
return False
-
- def get_canvas_screenshot(self):
- if not self.canvas:
- return None
-
- window = self.canvas.window
- width, height = window.get_size()
-
- screenshot = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, has_alpha=False,
- bits_per_sample=8, width=width, height=height)
- screenshot.get_from_drawable(window, window.get_colormap(), 0, 0, 0, 0,
- width, height)
- return screenshot