Better working nm-applet

- Start nm-applet when the shell starts
- Use the artwork
- Respond to signals and get initial states
This commit is contained in:
Dan Williams
2006-10-29 01:33:42 -04:00
parent 173817ae18
commit b2983ac763
2 changed files with 270 additions and 54 deletions
+8
View File
@@ -22,6 +22,7 @@ import os
import pygtk
pygtk.require('2.0')
import gtk
import gobject
from sugar import logger
from sugar import profile
@@ -46,6 +47,13 @@ if not name or not len(name):
model = ShellModel()
shell = Shell(model)
# Start the NetworkManager applet
# FIXME: do this somewhere else, better planned out
args = ["sugar-nm-applet"]
flags = gobject.SPAWN_SEARCH_PATH
result = gobject.spawn_async(args, flags=flags, standard_output=False)
tbh = TracebackUtils.TracebackHelper()
try:
gtk.main()