From bcc5e519a708de0bef82fbbee7def5c557a376f5 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 03 Dec 2010 15:24:04 +0000 Subject: Remove unused code --- diff --git a/Area.py b/Area.py index 2079ca1..faffe45 100644 --- a/Area.py +++ b/Area.py @@ -1245,7 +1245,6 @@ class Area(gtk.DrawingArea): self.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR)) self.emit('select') - #widget.queue_draw() self.queue_draw() def clear(self): @@ -1260,16 +1259,6 @@ class Area(gtk.DrawingArea): if not self.is_selected(): self.enableUndo(self) - # Changing to public methods - def _set_fill_color(self, color): - self.set_fill_color(color) - - def _set_stroke_color(self, color): - self.set_stroke_color(color) - - def _set_grayscale(self, widget): - self.grayscale(widget) - def set_tool(self, tool): ''' Method to configure all tools. diff --git a/OficinaActivity.py b/OficinaActivity.py index ec8910d..1733040 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -90,20 +90,12 @@ class OficinaActivity(activity.Activity): self.fixed.modify_bg(gtk.STATE_NORMAL, style.COLOR_WHITE.get_gdk_color()) - #self._bg = gtk.Image() - #self._bg.set_from_file('./icons/bg.svg') - #self.fixed.put(self._bg, 200, 100) - #self._bg.show - # These attributes are used in other classes, so they should be public self.area = Area(self) self.area.show() self.fixed.put(self.area, 0, 0) self.textview = gtk.TextView() - # If we use this, text viewer will have constant size, - # we don't want that - #self.textview.set_size_request(100,100) self.fixed.put(self.textview, 0, 0) sw = gtk.ScrolledWindow() -- cgit v0.9.1