Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-07-30 14:15:37 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-07-30 14:15:37 (GMT)
commitdec73665b6829b7f6a7674f0c934ec508c96d03f (patch)
tree9ffdc521b5e43f40c3fa61567a57f0858e910915
parentc6e05b35a0fe06301986e7f705883234e79e6363 (diff)
Remove temporary logging
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--Area.py10
-rw-r--r--Desenho.py6
2 files changed, 2 insertions, 14 deletions
diff --git a/Area.py b/Area.py
index 4253b01..c78f5aa 100644
--- a/Area.py
+++ b/Area.py
@@ -294,13 +294,13 @@ class Area(gtk.DrawingArea):
context = self.window.cairo_create()
if self.desenha:
- logging.error('Expose use temp canvas')
+ #logging.error('Expose use temp canvas')
# Paint the canvas in the widget:
# TODO: clipping
context.set_source_surface(self.temp_canvas)
context.paint()
else:
- logging.error('Expose use drawing canvas')
+ #logging.error('Expose use drawing canvas')
# TODO: clipping
context.set_source_surface(self.drawing_canvas)
context.paint()
@@ -411,7 +411,6 @@ class Area(gtk.DrawingArea):
self.d.freeform(widget, coords, True,
self.tool['fill'], "motion")
if self.tool['name'] == 'marquee-rectangular':
- logging.error(' mousedown marquee')
if self.is_selected():
xi, yi, width, height = self.get_selection_bounds()
xf = xi + width
@@ -419,7 +418,6 @@ class Area(gtk.DrawingArea):
# verify is out of the selected area
if (coords[0] < xi) or (coords[0] > xf) or \
(coords[1] < yi) or (coords[1] > yf):
- logging.error('out of selection area')
self.getout()
self._selmove = False
design_mode = False
@@ -498,7 +496,6 @@ class Area(gtk.DrawingArea):
self.d.selection(widget, coords)
elif self.tool['name'] == 'freeform':
- logging.error('mousemove')
self.configure_line(self.tool['line size'])
self.d.freeform(widget, coords, True,
self.tool['fill'], "motion")
@@ -579,7 +576,6 @@ class Area(gtk.DrawingArea):
self.d.square(widget, event, coords, False, self.tool['fill'])
elif self.tool['name'] == 'marquee-rectangular':
- logging.error('mouseup marquee-rectangular')
if self.is_selected() and not self._selmove:
self.create_selection_surface()
self.emit('select')
@@ -988,7 +984,6 @@ class Area(gtk.DrawingArea):
@param color -- a gdk.Color object
"""
- logging.error("TODO: Area.set_stroke_color %s", color)
self.tool['cairo_fill_color'] = (color.red_float,
color.green_float, color.blue_float, 0.3)
@@ -999,7 +994,6 @@ class Area(gtk.DrawingArea):
@param color -- a gdk.Color object
"""
- logging.error("TODO: Area.set_stroke_color %s", color)
self.tool['cairo_stroke_color'] = (color.red_float,
color.green_float, color.blue_float, 0.3)
return
diff --git a/Desenho.py b/Desenho.py
index 19f561d..33e3798 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -152,7 +152,6 @@ class Desenho:
"""
widget.drawing_ctx.set_source_rgba(*widget.tool['cairo_stroke_color'])
- logging.error('brush')
self._trace(widget, coords, last)
def stamp(self, widget, coords, last, stamp_size=20):
@@ -533,7 +532,6 @@ class Desenho:
# try to clear a selected area first
if widget.is_selected():
x, y, width, height = widget.get_selection_bounds()
- logging.error('clear %s', (x, y, width, height))
widget.drawing_ctx.rectangle(x, y, width, height)
widget.drawing_ctx.set_source_rgb(1.0, 1.0, 1.0)
@@ -627,7 +625,6 @@ class Desenho:
if widget.pending_clean_selection_background:
# clear the selection background
- logging.error('clean background %s', (x, y, width, height))
widget.drawing_ctx.save()
widget.drawing_ctx.new_path()
widget.drawing_ctx.rectangle(x, y, width, height)
@@ -683,7 +680,6 @@ class Desenho:
width, height = widget.window.get_size()
- logging.error('freeform param %s', param)
if param == "moving":
# mouse not pressed moving
if self.points:
@@ -713,7 +709,6 @@ class Desenho:
self.points.append(coords)
else:
# close the polygon
- logging.error('freeform ending')
self._draw_polygon(widget, False, fill, self.points)
widget.last = []
self.points = []
@@ -721,7 +716,6 @@ class Desenho:
widget.queue_draw()
return
- logging.error('freeform points (2) %s', self.points)
widget.desenha = True
# Display the polygon open in the temp canvas
self._draw_polygon(widget, True, False, self.points, closed=False)