Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-15 16:03:17 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-06-15 16:03:17 (GMT)
commitf0e18ba785a3d57af54bb6f6a7e9993dee6e72fe (patch)
treebb5225354f1b67c4714afc168a99b668b8330b90 /shell
parent6c0885b490b79662245f51628201a83e7ae70067 (diff)
Support for previews in the journal.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/Shell.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index 626f8a2..ab13269 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -214,13 +214,13 @@ class Shell(gobject.GObject):
file_path = os.path.join(tempfile.gettempdir(), '%i' % time.time())
window = gtk.gdk.get_default_root_window()
- width, height = window.get_size();
- x_orig, y_orig = window.get_origin();
+ width, height = window.get_size()
+ x_orig, y_orig = window.get_origin()
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(), x_orig, y_orig, 0, 0,
- width, height);
+ width, height)
screenshot.save(file_path, "png")
jobject = datastore.create()