Commit graph

137 commits

Author SHA1 Message Date
Jonathan Blandford
bebce45b6d Tue Oct 12 22:44:15 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessApplet.h: Change the name of the icons.

        * panel-applet/NMWirelessApplet.c: (animation_timeout),
        (nmwa_update_state), (nmwa_destroy), (nmwa_setup_widgets),
        (nmwa_icons_free), (nmwa_icons_load_from_disk), (nmwa_icons_init):
        Change the name of the icons.

        * panel-applet/menu-info.c: (nm_menu_wired_class_init),
        (nm_menu_wired_expose_event), (nm_menu_network_class_init),
        (nm_menu_wireless_class_init), (nm_menu_wireless_new),
        (nm_menu_wireless_expose_event): Really bad hack to get the style
        to draw in the right color.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@219 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-13 02:52:48 +00:00
John Palmieri
01e70b92cc Tue Oct 12 John (J5) Palmieri <johnp@redhat.com>
* info-daemon/NetworkManagerInfo.c (main):  Add child watch to respawn
        Notification if it crashes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@218 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-12 22:09:07 +00:00
Jonathan Blandford
ce1a341ff5 Fri Oct 8 07:19:55 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessAppletDbus.c (nmwa_dbus_get_double):
        (nmwa_dbus_get_string): remove unused functions

        * panel-applet/NMWirelessApplet.c (nmwa_about_cb):
        (nmwa_cancel_timeout), (nmwa_get_menu_pos), (nmwa_factory):
        remove unused functions

        * panel-applet/NMWirelessApplet.c: Rewrite icon code.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@217 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-12 19:26:29 +00:00
Dan Williams
154a042555 2004-10-12 Dan Williams <dcbw@redhat.com>
* panel-applet/NMWirelessAppletDbus.c
		- New functions:
			wireless_network_new
			wireless_network_copy
			network_device_new
			network_device_copy

	* src/NetworkManagerDevice.[ch]
		- New functions:
			nm_device_set_mode_managed
			nm_device_set_mode_adhoc
		- Use these functions where appropriate
		- When creating a new wireless device, force the card
			to managed/Infrastructure mode as soon as possible


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@216 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-12 16:44:58 +00:00
Dan Williams
8a87f57d79 2004-10-12 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
		- Force wireless cards into Infrastructure mode before we use them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@213 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-12 11:39:08 +00:00
Dan Williams
b6df634a51 2004-10-12 Dan Williams <dcbw@redhat.com>
* TODO
		- Remove bit about static IP address support

	* src/NetworkManagerUtils.c
		- (nm_spawn_process): Add some error reporting

	* src/NetworkManagerDevice.c
		- (nm_device_activation_configure_ip): hook up to the static config
			routines in the backends

	* src/backends/NetworkManagerRedHat.c
		- (nm_system_device_update_config_info): use shvar.c routines to
			parse the config file iformation, not our own
		- (nm_system_device_setup_static_ip4_config): new function, based
			heavily on 'ifup' script and 'ipcalc' tool code.  Set up a device
			with a static IP address and gateway

	* src/backends/shvar.[ch]
		- Parser (filched from initscripts package) for ifcfg-* files

	* src/backends/NetworkManagerSystem.h
	  src/backends/NetworkManagerGentoo.c
	  src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerSlackware.c
		- Stub nm_system_device_update_config_info() and nm_system_device_setup_static_ip4_config()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@212 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-12 11:15:47 +00:00
Dan Williams
c195cbf841 2004-10-11 Dan Williams <dcbw@redhat.com>
* TODO
		- Remove bit about more robust AP diffing since I just implemented it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@211 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-11 21:37:10 +00:00
Dan Williams
6b4bfea2de 2004-10-11 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerAP.c
		- (nm_ap_new, nm_ap_new_from_ap): Don't crash when we don't have
			enough RAM to allocate new AP structures, but return NULL instead

	* src/NetworkManagerAPList.[ch]
		- (nm_ap_list_is_empty): new function
		- (nm_ap_list_combine): new function, combine two access point lists
		- (nm_ap_list_copy_keys): new function, copy keys from one list
			into another

	* src/NetworkManagerDevice.[ch]
		- Rename some functions to be clearer:
			nm_device_get_best_ap_frozen -> nm_device_is_best_ap_frozen
			nm_device_just_activated     -> nm_device_is_just_activated
			nm_device_activating         -> nm_device_is_activating
			nm_device_now_scanning       -> nm_device_is_scanning
		- Cache the last 4 scans so that the access point list is more stable.
			We combine the lastest two scans and use that as the AP list,
			and diff that combined list against the combination of the earliest
			two cached scans for the WirelessNetworkAppeared/Dissappeared signals


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@210 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-11 21:32:19 +00:00
John (J5) Palmieri
8232c02a31 2004-10-08 John (J5) Palmieri <johnp@redhat.com>
* info-daemon/NWManagerInfo.h
                - (struct NetworkManagerInfo): add shutdown_timeout GSource

        * info-daemon/NWManagerInfoDbus.c
                - (shutdown_callback): new function
                - (nmi_dbus_filter): Create a 30 second timeout until shutdown
                        if NetworkManager goes away.  Kill the timeout
                        if NetworkManager restarts before the 30 seconds
                        are up.
                - (nmi_dbus_service_init):
                        - call gtk_main_quit if NetworkManager is not running
                        - add filters to monitor dbus service creations and
                                deletions


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@204 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 21:18:25 +00:00
John (J5) Palmieri
59b87ff21c 2004-10-08 John (J5) Palmieri <johnp@redhat.com>
* panel-applet/NMWirelessApplet.c
                - (nmwa_update_state): Hide notification icon if we are only
                        showing one wired card and no wireless interfaces
                        (Red Hat Bug #134895)

        * panel-applet/NMWirelessAppletDbus.c
                - (nmwa_dbus_filter): changed exit to gtk_main_quit ()

        * panel-applet/NWManagerInfo.c
                - (main): Terminated the notification_icon_cmd array with a NULL


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@202 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 17:47:45 +00:00
Hendrik Brandt
c57256e87d 2004-10-08 Hendrik Brandt <hebra@cvs.gnome.org>
* configure.in (ALL_LINGUAS): Added de (German).
	* po/de.po: Added German translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@201 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 16:36:07 +00:00
Dan Williams
901f7c8216 2004-10-08 Dan Williams <dcbw@redaht.com>
* src/NetworkManagerDevice.c
		- Be a bit more robust about link checking, ie make sure that
			the WEP key we were given actually has some data in it


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@199 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 16:07:27 +00:00
Dan Williams
823ac2ce60 2004-10-08 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfo.c (main):
		- Initialize GError object to NULL


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@198 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 13:38:36 +00:00
Dan Williams
3195956a0c 2004-10-08 Dan Williams <dcbw@redhat.com>
* panel-applet/NMWirelessAppletDbus.c
		- Die if NetworkManagerInfo dies, since it manages our lifetime


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@196 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 05:31:19 +00:00
Dan Williams
f39b3344c1 2004-10-08 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfo.[ch]
	  info-dameon/NetworkManagerInfoDbus.[ch]
	  info-daemon/NetworkManagerInfoPassphraseDialog.[ch]
		- Preserve original label text in the passphrase dialog so that
			it actually gets updated with the new network name the next
			time around.  Previously, we were overwriting it so you'd get
			the wrong network name to enter a key for
		- Add a "Key Type" combo to the passphrase dialog, user selects
			encryption key type now, type is stored in GConf too
		- Adjust NM<->NMI DBUS protocol to pass the key type back to NM too

	* src/NetworkManagerAP.[ch]
		- Remove all the encyption method magic.  It's now set by the user
			and NetworkManager retrieves the type of encryption key from
			NetworkManagerInfo

	* src/NetworkManagerAPList.[ch]
	  src/NetworkManagerDbus.[ch]
		- Adjust to new way of setting encryption key and method
		- Pull encryption method down from NMI along with key

	* src/NetworkManagerDevice.[ch]
		- Removed encryption method fallback magic as the method is now
			determined by the user.  This greatly simplifies the connection
			logic.
		- More robust connection/link logic.  Besides removing the encryption
			method fallback magic, check whether or not the card is receiving
			invalidly encrypted packets, which usually indicates that we have
			a bad WEP key set.
		- Don't blindly forge ahead when DHCP fails (still not completely fixed)

	* test/nminfotest.c
		- Test out new "Key Type" stuff in the NMI passphrase dialog


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@195 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-08 05:22:17 +00:00
Dan Williams
7bb6a2ef36 2004-10-07 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfo.conf
		- Allow root user to run NMI too


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@193 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-07 19:19:29 +00:00
Dan Williams
ce9f88bc19 2004-10-06 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.[ch]
	  src/NetworkManagerDbus.c
	  doc/NetworkManager DBUS API.txt
		- Add a new status tag "scanning", which is set when there
			is no active network connection, but NetworkManager is
			looking for an access point to associate with

	* panel-applet/main.c
		- Cast the applet appropriately for gtk_widget_show_all ()


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@192 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-07 01:50:39 +00:00
Jonathan Blandford
c96268564b Mon Oct 4 12:55:41 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/eggtrayicon.[ch]:
        * panel-applet/main.c: Add missing file


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@190 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-04 16:56:39 +00:00
Dan Williams
9383651b30 2004-10-04 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.[ch]
		- Add a slightly more robust method of determining if the WEP key
			is correct or not, by checking the WEP-discarded packet count
			on the card

	* info-daemon/NetworkManagerInfo.c
		- (nmi_gconf_notify_callback): Fix GConf essid escaping, should
			un-escape values we pull out rather than escaping them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@189 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-04 15:44:00 +00:00
Marcel Telka
2d806a153e 2004-10-03 Marcel Telka <marcel@telka.sk>
* configure.in (ALL_LINGUAS): Added sk.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@187 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-03 12:16:46 +00:00
Jonathan Blandford
b46b359554 Fri Oct 1 18:26:03 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/menu-info.c (nm_menu_wired_class_init): update look
        and feel.  We should be back to working, and have a good, clean
        look.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@183 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-01 22:26:45 +00:00
Dan Williams
999ee47b63 2004-09-30 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfo.c
	  info-daemon/NetworkManagerInfoDbus.c
	  test/nminfotest.c
		- Escape ESSIDs in gconf

	* src/NetworkManagerDevice.c
		- Fix pseudo-scanning to use netowrk list from info daemon


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@182 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-01 03:05:16 +00:00
Dan Williams
2f00a08a11 2004-09-30 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfo.c
	  info-daemon/NetworkManagerInfoDbus.c
	  test/nminfotest.c
		- Escape ESSIDs in gconf


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@181 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-10-01 00:44:30 +00:00
Jonathan Blandford
78bb8a008f Wed Sep 29 18:18:24 2004 Jonathan Blandford <jrb@redhat.com>
* configure.in: Add a temporary --enable-notification-icon.  This
        will prolly go away.

        * info-daemon/Makefile.am:
        * info-daemon/NetworkManagerInfo.c:
        * info-daemon/NetworkManagerInfo.h: Use a notification icon.

        * panel-applet/Makefile.am:
        * panel-applet/NMWirelessApplet.c: Turn into a notification icon
        * panel-applet/NMWirelessApplet.h:


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@180 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-29 22:22:05 +00:00
Jonathan Blandford
85d4ebd93c Tue Sep 28 16:35:20 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessApplet.c: Fix deadlock.  Add a separator
        before 'select custom ESSID'.

        * panel-applet/menu-info.c: Start rewrite for better headers.  Not
        fully complete, but syncing in prep for merge.

        * panel-applet/icons/*png: New images


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@178 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-28 20:38:23 +00:00
Dan Williams
356e922bf5 2004-09-28 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
	  src/NetworkManagerDevice.c
	  src/NetworkManagerPolicy.c
		- Don't blow away an active wired connection on startup


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@177 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-28 19:50:37 +00:00
Bryan Clark
acbd79be7e 2004-09-28 Bryan Clark <clarkbw@cvs.gnome.org>
Changes from J5

        * info-daemon/NetworkManagerInfo.conf: fixed own permissions

        * info-daemon/NetworkManagerInfoDbus.c: added service name to
        syslog output


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@176 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-28 16:13:56 +00:00
Jonathan Blandford
4abfaae2b6 Wed Sep 22 14:19:48 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessApplet.c: Only add essid's if we actually
        have a wireless card.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@171 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-22 18:23:01 +00:00
Jonathan Blandford
572cb80fe9 Wed Sep 22 14:05:48 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessApplet.c: move the custom essid item.
        Also, get the right device strings.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@170 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-22 18:07:29 +00:00
Jonathan Blandford
7c6ac395c9 Wed Sep 22 13:51:45 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/menu-info.c (nm_menu_network_draw_indicator): Flip
        the logic to make this right.

        * panel-applet/NMWirelessApplet.c (sort_networks_function): sort
        devices so that wired networks are always first.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@169 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-22 17:54:42 +00:00
clarkbw
14653e2021 2004-09-22 <clarkbw@cvs.gnome.org>
* initscript/Debian/.cvsignore:
	* initscript/Slackware/.cvsignore:
	Added new cvsignores for Makefile, Makefile.in

	* test/.cvsignore:
	Added nmtestdevices

	* src/NetworkManagerDevice.c:
	* src/NetworkManager.c:
	Updated the wireless/wired HAL device strings from net.ethernet to
	net.80203 or net.80211 depending on wired or wireless respectively
	Should probably update the configure.in to ask for the correct HAL
	version now.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@168 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-22 17:34:15 +00:00
Bryan W. Clark
9f2632a8ef uh, and the ChangeLog too, dammit
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@167 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-22 13:20:20 +00:00
Jonathan Blandford
bb33fbf767 Tue Sep 21 18:05:34 2004 Jonathan Blandford <jrb@redhat.com>
* configure.in: Add graphics

        * panel-applet/Makefile.am: Add graphics

        * panel-applet/icons/*: Add graphics

        * panel-applet/NMWirelessApplet.c: Use new menu times to display
        the icons fully lined up.

        * panel-applet/menu-info.c:
        * panel-applet/menu-info.h: Add another menu type.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@163 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-21 22:10:37 +00:00
Jonathan Blandford
63f4e9b4ec Fri Sep 17 14:04:34 2004 Jonathan Blandford <jrb@redhat.com>
* panel-applet/NMWirelessApplet.c: Redo the menu item code.

        * panel-applet/menu-item.[ch]: Wireless menu item.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@160 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-17 18:13:03 +00:00
John Palmieri
6e2f8e1503 * info-daemon/NetworkManagerInfo.conf
- Created a more robust security policy for the DBus service
		- everything is denied by default
		- root can own and send to the service
		- users logged in at the console can send to the service


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@159 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-15 18:21:56 +00:00
Dan Williams
7038f78935 2004-09-13 Dan Williams <dcbw@redhat.com>
* src/NetworkManagerDevice.c
		- (nm_device_get_essid): use iw_get_basic_config() rather than
			iw_get_ext (SIOCGIWESSID) since prism54 cards don't like
			the latter


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@157 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-13 21:00:35 +00:00
Dan Williams
ee710f0377 2004-09-13 Dan Williams <dcbw@redhat.com>
* TODO: fix typo

	* docs/NetworkManager DBUS API.txt
		- Update for new signal strength changes

	* panel-applet/NMWirelessApplet.c
		- Make panel icon show strength of the current connection
		- Cleanups and memleak fixes

	* panel-applet/NMWirelessApplet.h
		- Add data members for signal strength on devices and networks

	* panel-applet/NMWirelessAppletDbus.c
		- Free more DBusErrors
		- Update for new signal strength changes
		- Make devices and networks more like real objects, use ref/unref methods
		- Actually unlock the mutex when updating the active device

	* src/NetworkManagerAP.c
		- Change AP functions and data members from "quality"->"strength"

	* src/NetworkManagerDbus.c
		- Kill "getMaxQuality" and "getQuality" methods
		- Add "getStrength" methods for Networks and Devices

	* src/NetworkManagerDevice.[ch]
		- Add accessors for device strength
		- Add functions to update strength for a device.  Note that not all drivers
			actually support signal strength for scanned access points (Atmel drivers
			being one)
		- Calculate signal strength for each AP during scan

	* src/NetworkManagerWireless.[ch]
		- Add function to return signal strength % from a device and a raw quality struct

	* test/nmclienttest.c
		- Update for new signal strength changes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@156 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-13 17:43:16 +00:00
Dan Williams
53e50a9c7e 2004-09-11 Dan Williams <dcbw@redhat.com>
* src/NetworkManager.c
		- Fix race condition between initscripts and NM on card insertion
			which could cause a card to keep an IP address and routes around
			even when it was not the active device

	* src/NetworkManagerDbus.c
		- Fix compile errors, free more DBusErrors


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@154 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-12 15:39:05 +00:00
Dan Williams
7b4fccac7b 2004-09-11 Dan Williams <dcbw@redhat.com>
* docs/NetworkManager DBUS API.txt
		- Add an explanation of NM's API

	* src/NetworkManagerDbus.c
		- Free some more DBusErrors if needed


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@150 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-12 04:48:22 +00:00
Dan Williams
ae080994c7 2004-09-11 Dan Williams <dcbw@redhat.com>
* panel-applet/NMWirelessApplet.c
	  panel-applet/NMWirelessAppletDbus.c
		- Start using NetworkDevice/WirelessNetwork structures in more places
		- Update for unified device/network forcing in NetworkManager

	* src/NetworkManager.c
		- some code consolidation

	* src/NetworkManagerDbus.c
		- (nm_dbus_nm_set_active_device): "setActiveDevice" now takes either one
			or two arguments:  the first is the NM ID of the device to switch to,
			and the second (optional) argument is the ESSID of a wireless network
			to use as well.
		- Get rid of "setNetwork" method due to above change

	* src/NetworkManagerDevice.c
		- (nm_device_new): perform scan and update best AP on device creation
		- nm_device_activation_cancel_if_needed()->nm_device_activation_should_cancel()
		- nm_device_activation_signal_cancel()->nm_device_activation_cancel(), and
			spin waiting for cancellation to finish before returning

	* src/NetworkManagerPolicy.c
		- Changes here clarify the situations in which a device switch occurs, and
			make sure to keep using a forced device and network if the user gives
			us one
		- Remove old unused code


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@149 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-12 03:06:44 +00:00
Martin Willemoes Hansen
67a4648add * configure.in: Added Danish (da) to ALL_LINGUAS.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@147 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-11 11:34:07 +00:00
Dan Williams
9e32ee7856 2004-09-09 Dan Williams <dcbw@redhat.com>
* panel-applet/NMWirelessAppletDbus.c
		- Pull fresh devices and networks from NM when wireless networks
			change.  Provides faster feedback of a forced wireless network

	* src/NetworkManagerDbus.c
		- Return error when "getMaxQuality" is called on a wired device
		- Make best_ap freezing actually work again, and signal cancellation
			of activation if there's already a device activation when the user
			freezes the best_ap

	* src/NetworkManagerDevice.c
		- Don't clear out the best_ap for wireless devices when the link goes
			down, that's done elsewhere
		- Kill any dhcp daemons when cancelling device activation since they
			may be stuck waiting for a DHCP address, and since we're cancelling
			activation we don't care about that anymore

	* src/NetworkManagerPolicy.c
		- Make sure to unref the device we ref earlier (we refed it to make sure
			it stuck around during device activation and such)
		- If we were going to change the best device, but its activating currently
			(and therefore the change didn't occur due to the check earlier)
			we mark the state changed to we come back to it later when device
			activation has canceled and its no longer activating

	* src/backends/NetworkManagerRedHat.c
		- SIGKILL dhcp daemons rather than SIGTERM-ing them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@143 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 21:34:40 +00:00
Bryan Clark
54d7c3e436 2004-09-09 Bryan Clark <clarkbw@cvs.gnome.org>
* info-daemon/passphrase.glade:
	set passphrase input to activates_default : True


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@142 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 21:16:47 +00:00
Bryan Clark
a5f749fc9a 2004-09-09 Bryan Clark <clarkbw@cvs.gnome.org>
* examples/python/systray/network_tray.py
	(network_tray.sort_networks):

	Added support for having wireless always scanning


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@141 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 20:14:18 +00:00
Dan Williams
2b782920d6 2004-09-09 Dan Williams <dcbw@redhat.com>
NOTE: this commit changes the behavior of wireless devices in
	NetworkManager.  They are now up all the time, scanning all
	the time.  Only the active device has an IP address and routing
	information set up however.  Also, NetworkManager will no longer
	opportunistically switch wireless networks when a better one
	comes in range, it will remain associated with one wireless network
	until that one drops out.

	* panel-applet/NMWirelessApplet.c
	  panel-applet/NMWirelessAppletDbus.c
		- List all wireless cards and their respective networks

	* src/NMLoadModules
		- Use full path to /sbin/ip

	* src/NetworkManager.c
		- Keep wireless devices up all the time so they can scan

	* src/NetworkManagerDbus.c
		- On a WirelessNetworkUpdate signal from NMI, don't update
			the "best" AP

	* src/NetworkManagerDevice.c
		- (nm_device_set_link_active): clear out the best ap for
			wireless devices when the link is set to FALSE
		- Scan on all wireless cards, all the time
		- (nm_device_activation_worker): split out the wireless card
			link-waiting code to a separate function
		- Keep wireless cards up even if device activation fails
		- Don't update the "best" ap as much

	* src/NetworkManagerPolicy.c
		- Don't update the best ap when checking if its frozen,
			let link checking clear out a frozen best ap for us

	* src/NetworkManagerWireless.c
		- Scan on all wireless cards, all the time


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@140 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 20:02:59 +00:00
Francisco Javier F. Serrador
f499933f36 2004-09-09 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* es.po: Added Spanish translation.
	* configure.in: Added es language


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@139 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 18:34:11 +00:00
Ankitkumar Patel
6699bcaa18 ankit@redhat.com 09/09/2004 * configure.in: Added 'gu' (Gujarati) to ALL_LINGUAS
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@136 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 08:53:19 +00:00
Pablo Saratxaga
a268d147d5 Added Walloon file
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@135 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-09 08:41:01 +00:00
Bryan Clark
dade73e234 2004-09-08 Bryan Clark <clarkbw@cvs.gnome.org>
* examples/python/NetworkManager.py:
        added CONNECTED, CONNECTING, and DISCONNECTED states
        added methods to return number of devices of a single type

        * examples/python/systray/network_tray.py:
        did some tweaks to get the menu looking near what it is supposed
        to look like.  Also did a Airo card hack to make it show the
        correct AP quality


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@134 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-08 21:25:55 +00:00
Dan Williams
b0d1e68dd4 2004-09-08 Dan Williams <dcbw@redhat.com>
* panel-applet/no-networkmanager.png
	  panel-applet/Makefile.am
	  panel-applet/NMWirelessApplet.c
		- Add a "NetworkManager not running" icon and use it
		- Use new consolidated GConf keys rather than Preferred/Trusted

	* TODO: update

	* info-daemon/NetworkManagerInfo.c
	  info-daemon/NetworkManagerInfoDbus.[ch]
	  info-daemon/NetworkManagerInfoPassphraseDialog.c
		- There are now no longer two separate lists of wireless networks,
			but one list where each network is "trusted" or not trusted
		- Add a "getNetworkTrusted" dbus method
		- "WirelessNetworkUpdate" signal now sent rather than
			"PreferredNetworkUpdate/TrustedNetworkUpdate" signals
		- Start freeing some dbus errors (not completed yet)

	* info-daemon/passphrase.glade
		- Remove the "don't show" hints for pager and taskbar
		- Add a title since its going to be in the taskbar

	* src/NetworkManager.[ch]
	  src/NetworkManagerAPList.[ch]
		- There are now no longer two separate lists of wireless networks,
			but one list where each network is "trusted" or not trusted

	* src/NetworkManagerAP.[ch]
		- Add get/set "trusted" accessors and data bit

	* src/NetworkManagerDbus.[ch]
		- Add function to get "trusted" status of a network from NetworkManagerInfo
		- Trap new WirelessNetworkUpdate signal rather than old separate signals

	* src/NetworkManagerDevice.[ch]
		- Add per-device config data (ip4 addr, gateway, netmask) and accessors
		- (nm_device_new): Get device config from backend when initializing devices
		- (nm_device_activation_worker): Split out device configuration on
			activation to deal with static/dynamic IP differences, and try encryption
			fallbacks on a device if the encryption method for the best AP is not good
		- (nm_device_update_best_ap): convert to new consolidated access point lists from
			NetworkManagerInfo, and copy over latest NMI info to best_ap when setting it

	* src/NetworkManagerWireless.c
		- libgcrypt code wasn't converting the MD5 digest to an ascii string, fix it

	* src/backends/NetworkManagerRedHat.c
	  src/backends/NetworkManagerSystem.h
		- (nm_system_device_update_config_info): Add function to get device configuration
			from system data in ifcfg-* files

	* src/backends/NetworkManagerDebian.c
	  src/backends/NetworkManagerGentoo.c
	  src/backends/NetworkManagerSlackware.c
		- Add stub functions for getting device configuration


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@131 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-09-08 18:14:42 +00:00