From 79d858276c87d64bb17d521cfe6436bbc4acef30 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Mon, 30 Jul 2012 14:15:37 +0000 Subject: Remove temporary logging Signed-off-by: Gonzalo Odiard --- 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) -- cgit v0.9.1