Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#463 closed defect (fixed)

Network device icons don't react on right click

Reported by: erikos Owned by: erikos
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Unspecified
Severity: Minor Keywords:
Cc: r+ Distribution/OS: Unspecified
Bug Status: Resolved

Description

diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
index d52f083..01e3c1a 100644
--- a/extensions/deviceicon/network.py
+++ b/extensions/deviceicon/network.py
@@ -211,11 +211,11 @@ class WirelessDeviceView(ToolButton):
         self.set_icon_widget(self._icon)
         self._icon.show()
 
+        self.set_palette_invoker(FrameWidgetInvoker(self))
         self._palette = WirelessPalette(self._name)
         self._palette.connect('deactivate-connection',
                               self.__deactivate_connection)
         self.set_palette(self._palette)
-        self._palette.props.invoker = FrameWidgetInvoker(self)
         self._palette.set_group_id('frame')
 
         props = dbus.Interface(self._device, 'org.freedesktop.DBus.Properties')
@@ -381,9 +381,9 @@ class WiredDeviceView(TrayIcon):
 
         TrayIcon.__init__(self, icon_name=self._ICON_NAME, xo_color=color)
 
+        self.set_palette_invoker(FrameWidgetInvoker(self))
         self._palette = WiredPalette()
         self.set_palette(self._palette)
-        self._palette.props.invoker = FrameWidgetInvoker(self)
         self._palette.set_group_id('frame')
         self._palette.set_connected(speed, address)

Change History (3)

comment:1 Changed 12 years ago by tomeu

  • Cc r+ added; r? removed

comment:2 Changed 12 years ago by erikos

  • Bug Status changed from Assigned to Resolved
  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 8 years ago by godiard

  • Milestone 0.84 deleted

Milestone 0.84 deleted

Note: See TracTickets for help on using tickets.