Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/OficinaActivity.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-10-19 18:41:25 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-10-19 18:41:25 (GMT)
commitb900e216169904ecc18190069f206a283997ceb2 (patch)
tree6b7fd64a765a9168e7de56bb881f194d28247c85 /OficinaActivity.py
parent18019ab53d9dea5d5402a19a59f1868bc3a7dcda (diff)
Merging repositories
Using Sugar's Object Chooser to "Import Image" dialog box; user imports images from Journal. Palettes' layout changed (see ticket #4231). Image Toolbar buttons active only when there is a selection. Clear button now works with selected areas. From SVN: r116 | barbolo | 2007-10-16 15:57:10 -0200 (Ter, 16 Out 2007) | 14 lines Freeform polygon tool. Eben has suggested a new way of drawing freeform polygon and it's been implemented in this version. Now, it's possible to draw polygons with freeform lines. Modified functions: Desenho.polygon All the new algorithm has been written. Area.mousedown Area.mousemove Area.mouseup It's changed the way of calling Desenho.polygon function. ------------------------------------------------------------------------ r115 | andremossinato | 2007-10-09 14:38:51 -0300 (Ter, 09 Out 2007) | 4 lines now effects can be used in selection fixed bug in "insert image" added rotate
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r--OficinaActivity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/OficinaActivity.py b/OficinaActivity.py
index a77381d..bd8410a 100644
--- a/OficinaActivity.py
+++ b/OficinaActivity.py
@@ -65,7 +65,7 @@ from Area import Area
import logging
class OficinaActivity(activity.Activity):
-
+
def __init__(self, handle):
"""Initialize the OficinaActivity object.
@@ -144,6 +144,7 @@ class OficinaActivity(activity.Activity):
logging.debug('writting file %s', file_path)
width, height = self.area.window.get_size()
+ self.area.getout()
pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
pixbuf.get_from_drawable(self.area.pixmap, gtk.gdk.colormap_get_system(), 0, 0, 0, 0, -1, -1)
self.metadata['mime_type'] = 'image/png'