Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-10-08 21:44:11 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-10-08 21:44:11 (GMT)
commit18019ab53d9dea5d5402a19a59f1868bc3a7dcda (patch)
tree10753f7793198ae796bbbaafca4bd8521d48fa92 /Area.py
parent5f31d0ff9cb4db48a18310fb8802834053b02157 (diff)
Fitting canvas to usable area (See ticket #3689)
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py27
1 files changed, 14 insertions, 13 deletions
diff --git a/Area.py b/Area.py
index 936ed10..031d7c7 100644
--- a/Area.py
+++ b/Area.py
@@ -82,7 +82,8 @@ class Area(gtk.DrawingArea):
logging.debug('Area.__init__(self, janela)')
gtk.DrawingArea.__init__(self)
- self.set_size_request(800, 600)
+ #self.set_size_request(800, 600)
+ self.set_size_request(1185, 770)
self.set_events(gtk.gdk.POINTER_MOTION_MASK |
gtk.gdk.POINTER_MOTION_HINT_MASK |
gtk.gdk.BUTTON_PRESS_MASK |
@@ -519,8 +520,8 @@ class Area(gtk.DrawingArea):
self.undo_surf = True
- #special case for func polygon
- if self.tool['name'] == 'polygon':
+ #special case for func polygon
+ if self.tool['name'] == 'polygon':
self.polygon_start = True #start the polygon again
@@ -586,7 +587,7 @@ class Area(gtk.DrawingArea):
@param self -- the Area object (GtkDrawingArea)
"""
clipBoard = gtk.Clipboard()
- tempPath = os.path.join("/tmp", "tempFile")
+ tempPath = os.path.join("/tmp", "tempFile")
tempPath = os.path.abspath(tempPath)
if self.selmove:
@@ -614,7 +615,7 @@ class Area(gtk.DrawingArea):
else :
logging.debug('Area.copy(self): Please select some area first')
-
+
def _copyGetFunc( self, clipboard, selection_data, info, data ):
""" Determine type data to put in clipboard
@@ -623,7 +624,7 @@ class Area(gtk.DrawingArea):
@param selection_data -- data of selection
@param info -- the application assigned integer associated with a target
@param data -- user data (tempPath)
- """
+ """
selection_data.set( "text/uri-list", 8, data)
def _copyClearFunc( self, clipboard, data ):
@@ -632,12 +633,12 @@ class Area(gtk.DrawingArea):
@param self -- the Area object (GtkDrawingArea)
@param clipboard -- a gtk.Clipboard object
@param data -- user data (tempPath)
- """
- if (data != None):
- if (os.path.exists(data)):
- os.remove( data )
- data = None
-
+ """
+ if (data != None):
+ if (os.path.exists(data)):
+ os.remove( data )
+ data = None
+
def past(self):
""" Past image.
Past image that is in pixmap
@@ -646,7 +647,7 @@ class Area(gtk.DrawingArea):
"""
width, height = self.window.get_size()
- tempPath = os.path.join("/tmp", "tempFile")
+ tempPath = os.path.join("/tmp", "tempFile")
tempPath = os.path.abspath(tempPath)
clipBoard = gtk.Clipboard()