1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-23 14:42:29 +01:00

Merged r294 of experimental-nacl

This commit is contained in:
Andrew Psaltis
2009-03-07 14:49:51 -05:00
21 changed files with 373 additions and 314 deletions

View File

@@ -68,9 +68,10 @@ from optparse import OptionParser
CURSES_REVNO=wpath.curses_revision
language = misc.get_language_list_gui()
# We need 'Connecting' without the '...'
language['connecting']=misc.get_language_list_tray()['connecting']
# Fix strings in wicd-curses
from wicd.translations import language
for i in language.keys():
language[i] = language[i].decode('utf8')
########################################
##### SUPPORT CLASSES
@@ -951,7 +952,6 @@ def main():
# Import the screen based on whatever the user picked.
# The raw_display will have some features that may be useful to users
# later
parser.set_defaults(screen='raw')
if options.screen == 'raw':
import urwid.raw_display
ui = urwid.raw_display.Screen()
@@ -1042,7 +1042,6 @@ setup_dbus()
########################################
if __name__ == '__main__':
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REVNO,daemon.Hello()))
# raw = True. curses = False
parser.set_defaults(screen='raw')
parser.add_option("-r", "--raw-screen",action="store_const",const='raw'
,dest='screen',help="use urwid's raw screen controller (default)")