Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-08-10 16:41:50 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-08-10 16:41:50 (GMT)
commita4a14f67632b1516ccb5c2f85549b2072943c67f (patch)
tree19c1b775860e1c1539cfd5d876fc2ff8dc3ca1ff /src
parent729b870ee0a70e35ce4eda1fa5e60064b20973d3 (diff)
Pylint cleanups.
Remove non-functional wired device.
Diffstat (limited to 'src')
-rw-r--r--src/view/devices/network/Makefile.am1
-rw-r--r--src/view/devices/network/wired.py25
-rw-r--r--src/view/home/activitieslist.py16
3 files changed, 5 insertions, 37 deletions
diff --git a/src/view/devices/network/Makefile.am b/src/view/devices/network/Makefile.am
index 0d215f0..518362a 100644
--- a/src/view/devices/network/Makefile.am
+++ b/src/view/devices/network/Makefile.am
@@ -2,5 +2,4 @@ sugardir = $(pkgdatadir)/shell/view/devices/network
sugar_PYTHON = \
__init__.py \
mesh.py \
- wired.py \
wireless.py
diff --git a/src/view/devices/network/wired.py b/src/view/devices/network/wired.py
deleted file mode 100644
index 6843e0d..0000000
--- a/src/view/devices/network/wired.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright (C) 2006-2007, Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-from view.devices import deviceview
-
-class DeviceView(deviceview.DeviceView):
-
- FRAME_POSITION_RELATIVE = 300
-
- def __init__(self, model):
- deviceview.DeviceView.__init__(self, model)
- self.props.icon_name = 'network-wired'
diff --git a/src/view/home/activitieslist.py b/src/view/home/activitieslist.py
index 2f0860c..a6452c5 100644
--- a/src/view/home/activitieslist.py
+++ b/src/view/home/activitieslist.py
@@ -270,7 +270,7 @@ class FavoriteIcon(CanvasIcon):
self.connect('button-release-event', self.__release_event_cb)
self.connect('motion-notify-event', self.__motion_notify_event_cb)
- def _set_favorite(self, favorite):
+ def set_favorite(self, favorite):
if favorite == self._favorite:
return
@@ -281,17 +281,11 @@ class FavoriteIcon(CanvasIcon):
self.props.stroke_color = style.COLOR_BUTTON_GREY.get_svg()
self.props.fill_color = style.COLOR_WHITE.get_svg()
- def do_set_property(self, pspec, value):
- if pspec.name == 'favorite':
- self._set_favorite(value)
- else:
- CanvasIcon.do_set_property(self, pspec, value)
+ def get_favorite(self):
+ return self._favorite
- def do_get_property(self, pspec):
- if pspec.name == 'favorite':
- return self._favorite
- else:
- return CanvasIcon.do_get_property(self, pspec)
+ favorite = gobject.property(
+ type=str, getter=get_favorite, setter=set_favorite)
def __release_event_cb(self, icon, event):
self.props.favorite = not self.props.favorite