1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-11 12:05:51 +01:00

Merge latest 1.6

This commit is contained in:
Adam Blackburn
2009-05-02 12:47:05 +08:00
7 changed files with 44 additions and 37 deletions

View File

@@ -1,15 +1,16 @@
Installation of Wicd should be done using your distribution package if one Installation of Wicd should be done using your distribution package if one
exists. If not, the installation is relatively straightforward, but there exists. If not, the installation is relatively straightforward, but there
are a few dependencies: are a few dependencies:
1. python (obviously) and pygtk 1. python (>=2.4, <3.0)
2. pygtk (>=2.10)
2. dbus and its glib and python bindings 2. dbus and its glib and python bindings
3. a dhcp client (dhclient, dhcpcd, and pump are supported) 3. a dhcp client (dhclient, dhcpcd, and pump are supported)
4. wireless-tools (iwlist, iwconfig, etcetera) 4. wireless-tools (iwlist, iwconfig, etcetera)
5. net-tools (ip, route, etcetera) 5. net-tools (ip, route, etcetera)
6. a graphical sudo application (gksu, kdesu, and ktsuss are supported), 6. a graphical sudo application (gksu, kdesu, and ktsuss are supported),
while optional, is strongly recommended while optional, is strongly recommended
7. urwid (if you want to use the curses client) 7. urwid (if you want to use the curses client - needs version >=0.9.8.3)
8. pm-utils (optional for suspend/resume integration - needs version 1.2.4+) 8. pm-utils (optional for suspend/resume integration - needs version >=1.2.4)
If you are installing from a bzr pull or beta/rc tarball and you want If you are installing from a bzr pull or beta/rc tarball and you want
the native language translations, first run this: the native language translations, first run this:

57
NEWS
View File

@@ -1,25 +1,34 @@
MAIN CHANGES: Wicd 1.6.x Branch
- New and improved tray icon and gui images. (Thanks to Martin Sagastume).
- Re-organized network list in the GUI to be easier to navigate. Major Changes:
- Added new experimental ioctl backend, which is more CPU friendly than the previous one. - Improved tray icon and gui images (thanks to Martin Sagastume)
- Added a curses client (Thanks to Andrew Psaltis). - Reorganized network list in the gui for easier navigation
- Added a right-click connection menu to the tray icon. - New experimental ioctl backend, which is more cpu-friendly than the
- Add options to specify a dns domain and search domain for static networks. previous one
- Re-worked Preferences menu to be more in line with GNOME standards. - Added a curses client (thanks to Andrew Psaltis)
- Support for global scripts. - Added a right-click connection menu to the tray icon
- Make it possible to have optional entries in encryption templates. - Added options to specify a dns domain and search domain for static networks
- Reworked the Preferences menu to be more in line with GNOME standards
- Added support for global scripts
- Made it possible to have optional entries in encryption templates
Minor Changes and Other Enchancements:
- Better autoconnection behavior
- Tray/GUI will survive the daemon being killed
- Reasons for connection failures will now bubble back to the GUI
- Add/Remove wired profile system is now more user-friendly
- Support for using resolvconf instead of directly editing /etc/resolv.conf
- Wicd won't blindly kill dhcp clients / wpa_supplicant any more
- Added an option to automatically switch from a wireless network to a wired
one as soon as a cable is plugged in
- Moved scanning to its own thread, which makes GUI and daemon more responsive
during scans
- Made it possible to specify macros in script entries
- The gui will now display the encryption entry dialog if you attempt to
connect to an encrypted network without entering a password
- Static gateway entry is now optional
- Passwords with leading or trailing whitespace are now stored properly
- Many init/config script, man page, and setup.py fixes/updates, including
better autodetection of file placement with regard to sleep hooks and
kde autostart files (thanks to Robby Workman)
SMALL CHANGES:
- Better autoconnection behavior.
- Tray/GUI will survive the daemon going down.
- Reasons for connection failures will now bubble back to the GUI.
- Add/Remove wired profile system is now more user-friendly.
- Support for using resolvconf instead of directly editing /etc/resolv.conf.
- Wicd won't blindly kill dhcp clients / wpa_supplicant anymore.
- Added an option to automatically switch from a wireless network to a wired one as soon as a cable is plugged in.
- Move scanning to its own thread, which makes GUI and daemon more responsive during scans.
- Make it possible to specify macros in script entries.
- GUI will now display the encryption entry dialog if you attempt to connect to an encrypted network without entering a password.
- Static gateway entry is now optional.
- Passwords with leading or trailing whitespace are now stored properly.
- Many init/config script, man page, and setup.py fixes/updates (Thanks to Robby Workman).

View File

@@ -108,7 +108,7 @@ class ConfigManager(RawConfigParser):
try: try:
if not ret.startswith('0') or len(ret) == 1: if not ret.startswith('0') or len(ret) == 1:
ret = int(ret) ret = int(ret)
except (ValueError, TypeError): except (ValueError, TypeError, AttributeError):
ret = Noneify(ret) ret = Noneify(ret)
# This is a workaround for a python-dbus issue on 64-bit systems. # This is a workaround for a python-dbus issue on 64-bit systems.
if isinstance(ret, (int)): if isinstance(ret, (int)):

View File

@@ -148,7 +148,7 @@ class appGui(object):
gladefile = os.path.join(wpath.share, "wicd.glade") gladefile = os.path.join(wpath.share, "wicd.glade")
self.wTree = gtk.glade.XML(gladefile) self.wTree = gtk.glade.XML(gladefile)
self.window = self.wTree.get_widget("window1") self.window = self.wTree.get_widget("window1")
self.window.set_icon_from_file(wpath.icons +'scalable/apps/wicd-client.svg') self.window.set_icon_name("wicd-client")
size = daemon.ReadWindowSize("main") size = daemon.ReadWindowSize("main")
width = size[0] width = size[0]
height = size[1] height = size[1]

View File

@@ -405,9 +405,9 @@ class WirelessSettingsDialog(AdvancedSettingsDialog):
def save_settings(self, networkid): def save_settings(self, networkid):
# Check encryption info # Check encryption info
encrypt_info = self.encryption_info
if self.chkbox_encryption.get_active(): if self.chkbox_encryption.get_active():
print "setting encryption info..." print "setting encryption info..."
encrypt_info = self.encryption_info
encrypt_methods = self.encrypt_types encrypt_methods = self.encrypt_types
self.set_net_prop("enctype", self.set_net_prop("enctype",
encrypt_methods[self.combo_encryption.get_active()]['type']) encrypt_methods[self.combo_encryption.get_active()]['type'])
@@ -432,7 +432,7 @@ class WirelessSettingsDialog(AdvancedSettingsDialog):
print "no encryption specified..." print "no encryption specified..."
self.set_net_prop("enctype", "None") self.set_net_prop("enctype", "None")
for entry in encrypt_info.iterkeys(): for entry in encrypt_info.iterkeys():
self.set_net_prop(entry[0].entry, "") self.set_net_prop(entry[0], "")
AdvancedSettingsDialog.save_settings(self) AdvancedSettingsDialog.save_settings(self)
if self.chkbox_global_settings.get_active(): if self.chkbox_global_settings.get_active():

View File

@@ -59,12 +59,9 @@ class PreferencesDialog(object):
def _setup_external_app_radios(self, radio_list, get_method, set_method): def _setup_external_app_radios(self, radio_list, get_method, set_method):
""" Generic function for setting up external app radios. """ """ Generic function for setting up external app radios. """
def set_available(apps):
for app in apps:
app.set_sensitive(daemon.GetAppAvailable(app.get_label()))
# Disable radios for apps that aren't installed. # Disable radios for apps that aren't installed.
set_available(radio_list[1:]) for app in radio_list[1:]:
app.set_sensitive(daemon.GetAppAvailable(app.get_label()))
selected_app = get_method() selected_app = get_method()
# Make sure the app we want to select is actually available. # Make sure the app we want to select is actually available.
if radio_list[selected_app].get_property("sensitive"): if radio_list[selected_app].get_property("sensitive"):

View File

@@ -1201,8 +1201,8 @@ class WirelessDaemon(dbus.service.Object):
# We want to write the essid in addition to bssid # We want to write the essid in addition to bssid
# sections if global settings are enabled. # sections if global settings are enabled.
self.config.remove_section(essid_key)
if cur_network["use_settings_globally"]: if cur_network["use_settings_globally"]:
self.config.remove_section(essid_key)
self.config.add_section(essid_key) self.config.add_section(essid_key)
for x in cur_network: for x in cur_network: