Get rid of the old nm applet
This commit is contained in:
@@ -8,7 +8,6 @@ sugar_PYTHON = \
|
||||
eventframe.py \
|
||||
frame.py \
|
||||
ZoomBox.py \
|
||||
notificationtray.py \
|
||||
overlaybox.py \
|
||||
PanelWindow.py \
|
||||
framepopupcontext.py
|
||||
|
||||
@@ -26,7 +26,6 @@ from view.frame.overlaybox import OverlayBox
|
||||
from view.frame.FriendsBox import FriendsBox
|
||||
from view.frame.PanelWindow import PanelWindow
|
||||
from view.frame.clipboardpanelwindow import ClipboardPanelWindow
|
||||
from view.frame.notificationtray import NotificationTray
|
||||
from view.frame.framepopupcontext import FramePopupContext
|
||||
from model.ShellModel import ShellModel
|
||||
from sugar.graphics.timeline import Timeline
|
||||
@@ -87,16 +86,6 @@ class Frame:
|
||||
box = ZoomBox(self._shell, self._popup_context)
|
||||
root.append(box)
|
||||
|
||||
tray = NotificationTray()
|
||||
tray_box = hippo.CanvasBox(box_width=units.grid_to_pixels(1),
|
||||
box_height=units.grid_to_pixels(1),
|
||||
xalign=hippo.ALIGNMENT_END)
|
||||
|
||||
tray_widget = hippo.CanvasWidget()
|
||||
tray_widget.props.widget = tray
|
||||
tray_box.append(tray_widget, gtk.EXPAND)
|
||||
root.append(tray_box)
|
||||
|
||||
box = OverlayBox(self._shell)
|
||||
root.append(box, hippo.PACK_FIXED)
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import gtk
|
||||
|
||||
from _sugar import TrayManager
|
||||
|
||||
class NotificationTray(gtk.HBox):
|
||||
def __init__(self):
|
||||
gtk.HBox.__init__(self)
|
||||
|
||||
self._manager = TrayManager()
|
||||
self._manager.connect('tray-icon-added', self._icon_added_cb)
|
||||
self._manager.connect('tray-icon-removed', self._icon_removed_cb)
|
||||
self._manager.manage_screen(gtk.gdk.screen_get_default())
|
||||
|
||||
def _icon_added_cb(self, manager, icon):
|
||||
self.pack_start(icon, False)
|
||||
|
||||
def _icon_removed_cb(self, manager, icon):
|
||||
icon.destroy()
|
||||
Reference in New Issue
Block a user