Commit graph

258 commits

Author SHA1 Message Date
Dan Williams
b16f8eea16 Fix compile error in notification code, wasn't including config.h early enough
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1552 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-05 19:50:51 +00:00
Dan Williams
6eacb970f2 2006-03-05 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-notifications.h
		- Protect prototype of nma_send_event_notification() because it
			includes libnotify-specific types
		- Include libnotify/libnotify.h too, since we technically need it

	* gnome/applet/applet.c
		- (nma_show_vpn_failure_dialog): fix usage of g_return_if_fail
		- (nma_show_vpn_login_banner_dialog): add some error checking


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1551 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-05 18:54:19 +00:00
Robert Love
bf4c96104d Remove stray debugging code.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1541 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-03 15:51:30 +00:00
Robert Love
e92a2cc651 2006-03-02 Robert Love <rml@novell.com>
Add support for retrieving both the per-device speed and the
	per-network maximum supported rate.  Then change the getProperties
	DBUS API for both networks and devices to report this informaiton.
	Finally, display the information via both nm-applet and nm-tool:
	* gnome/applet/applet-dbus-devices.c: Grab the speed from getProperties
	  and set it.
	* gnome/applet/applet.c: Display the device's speed in the 'Connection
	  Information' dialog.
	* gnome/applet/applet.glade: Update the UI to show per-device speed.
	* gnome/applet/nm-device.c, gnome/applet/nm-device.h: Add interfaces
	  network_device_get_speed() and network_device_set_speed() for
	  retrieving and setting, respectively, a network device's current
	  speed.
	* src/nm-dbus-device.c: Send the device's speed on getProperties.
	* src/nm-device-802-11-wireless.c: Return the rate in Mb/s, not Kb/s,
	  in the function nm_device_802_11_wireless_get_bitrate() -- it does
	  not matter (yet) what the units are, because we only feed it its own
	  output.  Implement SIOCGIRATE and set the per-network maximum
	  supported rate during scanning.
	* src/nm-device-802-11-wireless.h: Export the function
	  nm_device_802_11_wireless_get_bitrate().
	* src/nm-device-802-3-ethernet.c, src/nm-device-802-3-ethernet.h: Add
	  function nm_device_802_3_ethernet_get_speed() for returning an
	  802.3's current speed, in Mb/s.
	* test/nm-tool.c: Display the per-device current speed, if available,
	  and the per-network maximum rate.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1540 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 23:01:33 +00:00
Robert Love
a0281d0e8c 2006-03-02 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Do not set the pixbuf if we don't have an
	  active device.  But do not do what we used to do and override the
	  state, which caused the dreaded icon race of '05.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1538 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-02 20:51:13 +00:00
Dan Williams
a6be234a31 2006-02-28 Dan Williams <dcbw@redhat.com>
Patch from Brian Magnuson <magnuson@rcn.com>
	* gnome/applet/applet.c
		- (nma_show_vpn_failure_dialog): fix errors left over from
			libnotify support changes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1531 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 04:39:38 +00:00
Dan Williams
15a6f01743 2006-02-28 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nma_menu_add_vpn_menu): until the NM VPN manager can deal with
			overlapping connection requests, disable all VPN menu items
			but the active VPN connection


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1529 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 03:24:09 +00:00
Christopher Aillon
e67bb485bd 2006-02-28 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet.glade:
	Mark a few strings non-translatable, since they shouldn't be.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1527 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-01 00:19:20 +00:00
Robert Love
8a98f605bc Yah, so, we don't want those dbus_free() calls.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1522 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 20:47:44 +00:00
Robert Love
53d879a3dc 2006-02-28 Robert Love <rml@novell.com>
* gnome/applet/wso-wpa-eap.c: Fix misc. FIXME statements.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1516 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 19:57:29 +00:00
Robert Love
2fb731aa43 2006-02-28 Robert Love <rml@novell.com>
* libnm-util/dbus-helpers.c, src/nm-ap-security-wpa-eap.c,
	  src/nm-ap-security-wpa-psk.c, gnome/applet/nm-gconf-wso-wpa-eap.c,
	  gnome/applet/nm-gconf-wso-wpa-eap.c: Fix FIXMEs: Callers of the DBUS
	  deserializers are responsible for freeing the returned DBUS strings.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1515 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-28 19:48:25 +00:00
Robert Love
c4f8012b97 2006-02-27 Robert Love <rml@novell.com>
Patch by R. Vinay <rvinay@novell.com>:
	* gnome/vpn-properties/nm-vpn-properties.c: Remove the gconf key
	  'last_attempt_success' when removing a VPN connection, too.  (Fixes
	  Novell bug #153628).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1506 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 18:16:48 +00:00
Robert Love
a0ef5bab6f 2006-02-27 Robert Love <rml@novell.com>
* gnome/applet/applet.glade: Set "activates_default" on passphrase
	  entry so user can hit <ENTER> after entering passphrase (Novell bug
	  #153738).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1505 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 17:38:12 +00:00
Dan Williams
4fe5a5e2c9 2006-02-27 Dan Williams <dcbw@redhat.com>
* gnome/applet/*
		- Mass search/replace of:
			nmwa -> nma
			NMWirelessApplet -> NMApplet
			NM_*_WIRELESS_APPLET -> NM_*_APPLET
		   (it ain't just for wireless anymore, ma!)
		- Fix duplicate function name printing when using nm_warning
		- wireless-applet.glade -> applet.glade


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1501 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-27 06:26:31 +00:00
Dan Williams
ad38b25413 2006-02-26 Dan Williams <dcbw@redhat.com>
* configure.in
	  gnome/applet/Makefile.am
		- Conditionalize all the notify stuff

	Merge most of Chris Aillon's notification patch:

	* gnome/applet/applet-notifications.[ch]
		- New files; show a notification

	* gnome/applet/applet-dbus-devices.[ch]
		- (nmwa_dbus_device_activated, nmwa_dbus_device_activated_cb,
		   nmwa_dbus_device_deactivated, nmwa_dbus_device_deactivated_cb):
			new functions, do the right thing when a device change occurs

	* gnome/applet/applet-dbus.c
		- (nmwa_dbus_filter): Split out DeviceNowActive and DeviceNoLongerActive
			signals, so we can handle them specially

	* gnome/applet/applet.[ch]
		- nmwa_schedule_vpn_login_banner -> nmwa_show_vpn_login_banner
		- nmwa_schedule_vpn_failure_alert -> nmwa_show_vpn_failure_alert
		- (nmwa_notify_state): remove
		- (nmwa_update_state); remove call to nmwa_notify_state, since the
			notification work is now done when the appropriate dbus signals
			are received.
		- (nmwa_show_vpn_login_banner, nmwa_show_vpn_failure_alert): don't
			defer execution of the notification/dialog stuff.  That was an
			artifact of the previous multi-threaded nature of the applet
			and is now pointless.
		- (nmwa_notify_vpn_failure, nmwa_notify_vpn_login_banner): remove,
			no longer needed.  Function folded into applet-notifications.c

	* src/NetworkManagerPolicy.c
		- (nm_policy_activation_finish): send the AP along with the device
			status change signal, if the connection is wireless.  Should
			fix the race where applet would show a connection to "unknown"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1498 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 06:52:26 +00:00
Robert Love
eaca24a5be [ Add new files; missing from previous commit. ]
2006-02-25  Robert Love  <rml@novell.com>

	Add WPA Enterprise support:
	* gnome/applet/Makefile.am: Build the files nm-gconf-wso-wpa-eap.c and
	  nm-gconf-wso-wpa-eap.h.
	* gnome/applet/nm-gconf-wso-wpa-eap.c,
	  gnome/applet/nm-gconf-wso-wpa-eap.h:  Add WPA Enterprise Gconf
	  serialization and deserialization.
	* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, gnome/applet/wso-wpa-psk.c,
	  gnome/applet/wso-wpa-psk.h: Clean up, support new defines.
	* gnome/applet/wireless-applet.glade: Add UI for configurating security
	  settings related to WPA Enterprise.
	* gnome/applet/wireless-security-manager.c: Invoke wso_wpa_eap_new() to
	  instantiate WPA Enterprise wireless-security-option.
	* gnome/applet/wso-wpa-eap.c, gnome/applet/wso-wpa-eap.h: New files.
	  Implement WPA Enterprise wireless-security-option object.
	* include/NetworkManager.h: Add new NM_AUTH_TYPE_* and NM_EAP_METHOD_*
	  defines.  Cleanup.
	* libnm-util/cipher-wpa-psk-hex.c,
	  libnm-util/cipher-wpa-psk-passphrase.c: Cleanup.
	* libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h: Add
	  nmu_security_serialize_wpa_eap() to serialize input to DBUS method,
	  nmu_security_serialize_wpa_eap_with_cipher() to serialize input
	  including the cipher to DBUS method, and
	  nmu_security_deserialize_wpa_eap() to deserialize from DBUS return
	  to output.
	* src/Makefile.am: Build the files nm-ap-security-wpa-eap.c and
	  nm-ap-security-wpa-eap.h
	* src/NetworkManagerAP.c: Add NM_AUTH_TYPE_WPA_EAP to
	  NM_802_11_CAP_KEY_MGMT_802_1X cipher to capability mapping.
	* src/nm-ap-security-wpa-eap.c, src/nm-ap-security-wpa-eap.h: New
	  files.  Implement NMAPSecurityWPA_EAP object.
	* src/nm-ap-security-wpa-psk.c: Cleanup.
	* src/nm-ap-security.c: Support NM_AUTH_TYPE_EAP cipher and instantiate
	  an NMAPSecurityWPA_EAP object via the method
	  nm_ap_security_wpa_eap_new_deserialize().
	* src/nm-dbus-nm.c: Cleanup.
	* test/nm-tool.c: Display "Enterprise" for wireless networks providing
	  WPA Enterprise support.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1494 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 02:24:46 +00:00
Robert Love
7301a244b2 2006-02-25 Robert Love <rml@novell.com>
Add WPA Enterprise support:
	* gnome/applet/Makefile.am: Build the files nm-gconf-wso-wpa-eap.c and
	  nm-gconf-wso-wpa-eap.h.
	* gnome/applet/nm-gconf-wso-wpa-eap.c,
	  gnome/applet/nm-gconf-wso-wpa-eap.h:  Add WPA Enterprise Gconf
	  serialization and deserialization.
	* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, gnome/applet/wso-wpa-psk.c,
	  gnome/applet/wso-wpa-psk.h: Clean up, support new defines.
	* gnome/applet/wireless-applet.glade: Add UI for configurating security
	  settings related to WPA Enterprise.
	* gnome/applet/wireless-security-manager.c: Invoke wso_wpa_eap_new() to
	  instantiate WPA Enterprise wireless-security-option.
	* gnome/applet/wso-wpa-eap.c, gnome/applet/wso-wpa-eap.h: New files.
	  Implement WPA Enterprise wireless-security-option object.
	* include/NetworkManager.h: Add new NM_AUTH_TYPE_* and NM_EAP_METHOD_*
	  defines.  Cleanup.
	* libnm-util/cipher-wpa-psk-hex.c,
	  libnm-util/cipher-wpa-psk-passphrase.c: Cleanup.
	* libnm-util/dbus-helpers.c, libnm-util/dbus-helpers.h: Add
	  nmu_security_serialize_wpa_eap() to serialize input to DBUS method,
	  nmu_security_serialize_wpa_eap_with_cipher() to serialize input
	  including the cipher to DBUS method, and
	  nmu_security_deserialize_wpa_eap() to deserialize from DBUS return
	  to output.
	* src/Makefile.am: Build the files nm-ap-security-wpa-eap.c and
	  nm-ap-security-wpa-eap.h
	* src/NetworkManagerAP.c: Add NM_AUTH_TYPE_WPA_EAP to
	  NM_802_11_CAP_KEY_MGMT_802_1X cipher to capability mapping.
	* src/nm-ap-security-wpa-eap.c, src/nm-ap-security-wpa-eap.h: New
	  files.  Implement NMAPSecurityWPA_EAP object.
	* src/nm-ap-security-wpa-psk.c: Cleanup.
	* src/nm-ap-security.c: Support NM_AUTH_TYPE_EAP cipher and instantiate
	  an NMAPSecurityWPA_EAP object via the method
	  nm_ap_security_wpa_eap_new_deserialize().
	* src/nm-dbus-nm.c: Cleanup.
	* test/nm-tool.c: Display "Enterprise" for wireless networks providing
	  WPA Enterprise support.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1493 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-26 02:16:53 +00:00
Robert Love
4fcf804bda 2006-02-24 Robert Love <rml@novell.com>
Patch from Dan Winship <danw@novell.com>:
	* gnome/applet/eggtrayicon.c: Update EggTrayIcon code.  Set the gdk
	  area to transparent.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1488 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-24 16:48:35 +00:00
Dan Williams
80d24298e9 2006-02-21 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.[ch]
	  gnome/applet/applet-dbus.c
		- Implement notification support for VPN messages too


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1483 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-21 08:03:26 +00:00
Dan Williams
3cee510406 2006-02-21 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-info.c
		- Clean up warning messages to not double-print the function


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1482 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-21 07:12:08 +00:00
Dan Williams
5c0b9bd509 2006-02-21 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-compat.c
		- (convert_one_entry): accept entries without a key_type and
			convert them to unencrypted networks


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1481 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-21 07:02:55 +00:00
Dan Williams
b0ee0cbb46 2006-02-21 Dan Williams <dcbw@redhat.com>
* gnome/libnm_glib/libnm_glib.c
		- Use __func__ everywhere we can
		- Code cleanups
		- Use dbus pending calls rather than blocking
		- Reduce busywaits for our thread to start and stop
			(gnome.org #330562)
		- (libnm_glib_dbus_init): Use dbus_bus_get_private() so we don't
			stomp on others using the default shared dbus connection.
			Fixes #rh177546# and gnome.org #326572


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1480 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-21 06:25:50 +00:00
Dan Williams
06f760a049 2006-02-21 Dan Williams <dcbw@redhat.com>
Patch from Rodney Dawes <dobey@novell.com>
    * gnome/applet/Makefile.am
      gnome/applet/applet.c
        - Add libnotify support if '--enable-notify=yes' is passed
            at configure time


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1479 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-21 05:27:44 +00:00
Robert Love
22659f34a6 2006-02-15 Robert Love <rml@novell.com>
* gnome/vpn-properties/Makefile.am: Define SYSCONFDIR preprocessor
	  define to $sysconfdir.
	* gnome/vpn-properties/nm-vpn-properties.c: Make sure we hide the VPN
	  editing dialog, vpn_edit_widget, which fixes a bug where editing one
	  type of VPN and then editing another results in a mangled dialog
	  box containing the widgets from both VPNs (fixes Novell #150854).
	  Also, some misc. cleanup and use SYSCONFDIR not open coded directory.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1473 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-15 16:34:21 +00:00
Dan Williams
e90e4f88ca 2006-02-05 Dan Williams <dcbw@redhat.com>
* gnome/applet/nm-gconf-wso.c
		- (real_serialize_dbus): return TRUE, not 0.  Fixes serialization
			of unencrypted access point security info.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1443 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 05:47:26 +00:00
Dan Williams
de07a4fc5f Remove double function name in warning
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1442 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-05 05:41:21 +00:00
Dan Williams
b54e6ea149 2006-02-03 Dan Williams <dcbw@redhat.com>
* gnome/applet/main.c
		- (main): change the NEVER->ALWAYS so we start at the
			beginning of the session, if being session-managed


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1434 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-03 15:34:27 +00:00
Dan Williams
203eac3431 2006-02-02 Dan Williams <dcbw@redhat.com>
* gnome/applet/main.c
		- (main): in a variation on Robert's patch, change
			RESTART_IMMEDIATELY -> RESTART_NEVER.  Should do what
			he wants.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1433 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-03 15:32:06 +00:00
Robert Love
2f71e13495 2006-02-02 Robert Love <rml@novell.com>
* src/NetworkManagerAP.c: Add 'broadcast' property to the NMAccessPoint
	  structure, which denotes whether or not the AP is hidden.  This is a
	  superset of 'artificial' -- we need 'broadcast' because a hidden AP
	  can show up in the scan list.  Add nm_ap_get_broadcast() and
	  nm_ap_set_broadcast() accessor interfaces.
	* src/NetworkManagerAP.h: Add prototypes for nm_ap_get_broadcast() and
	  nm_ap_set_broadcast().
	* src/nm-dbus-net.c: Add new argument, boolean broadcast, to the
	  "getProperties" method, which denotes whether or not the given
	  network is hidden.
	* src/nm-device-802-11-wireless.c: Set broadcast to FALSE when creating
	  an artificial network.  Set broadcast to TRUE when scanning returns
	  an ESSID and FALSE when not.
	* gnome/applet/applet-dbus-devices.c: Retrieve 'broadcast' argument
	  from "getProperties" method on a network.  Possible TODO is to
	  somehow display this.
	* test/nm-tool.c: Display "Hidden" if the AP does not broadcast.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1429 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-02 18:05:19 +00:00
Robert Love
a78d9f57cf Mark label-driver as selectable (so user's can copy it) like the other labels.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1422 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-02-01 17:28:20 +00:00
Robert Love
569693ce2d 2006-01-30 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-psk.c, gnome/applet/nm-gconf-wso.c,
	  gnome/applet/wireless-security-option.c, include/NetworkManager.h,
	  libnm-util/cipher-wpa-psk-hex.c, src/nm-ap-security-wpa-psk.c,
	  libnm-util/cipher-wpa-psk-passphrase.c, src/nm-ap-security.c: Add
	  support for "Automatic" pairwise and group cipher configuration by
	  letting wpa_supplicant handle the details.  Add UI elements, new
	  cipher type NM_AUTH_CIPHER_AUTO, and backend support.  Works like a
	  charm.  Note this does more than add a nice feature, it fixes a bug.
	  Apparently, some people have AP's where the pairwise cipher does not
	  match the group cipher.  Insane, but true.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1407 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 19:40:10 +00:00
Dan Williams
4c4eed19fc 2006-01-30 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-devices.c
		- (nmwa_dbus_device_get_driver_cb, nmwa_dbus_device_get_driver): new
			functions, grab device driver name from NetworkManager
		- (nmwa_dbus_device_properties_cb): call functions to get driver

	* gnome/applet/applet.c
		- (nmwa_update_info): show driver name in Connection Information
			dialog

	* gnome/applet/nm-device.[ch]
		- (network_device_get_driver, network_device_set_driver): add
			accessors for driver name

	* gnome/applet/wireless-applet.glade
		- Add line for driver name to Connection Information dialog

	* src/nm-dbus-device.c
		- (nm_dbus_device_get_driver): new function to return driver name
		- (nm_dbus_device_methods): hook up driver name function to dbus

	* test/nm-tool.c
		- (get_driver_name): new function
		- (detail_device): grab and show driver name


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1406 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 18:45:17 +00:00
Robert Love
b92d952a4d 2006-01-30 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Apparently gtk_message_dialog_new_with_markup
	  does not parse the markup if it is not part of the format.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1405 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 17:31:05 +00:00
Robert Love
1ca336c741 2006-01-27 Robert Love <rml@novell.com>
* gnome/applet/passphrase-dialog.c: If wsm_set_capabilities() returns
	  FALSE, we have no security options for this dialog, so we throw up
	  an error dialog instead of a broken passphrase dialog.  Fixes
	  Novell #138404.
	* gnome/applet/wireless-security-manager.c,
	  gnome/applet/wireless-security-manager.h: If wsm_set_capabilities()
	  does not add any security options, not even none, print a warning
	  and return FALSE.  This let's functions constructed a dialog bail
	  out if the device's capabilities and the network's requirements have
	  zero overlap.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1404 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-30 17:28:22 +00:00
Robert Love
b60c770dab 2006-01-26 Robert Love <rml@novell.com>
* configure.in: Change '-Wno-unused' to '-Wno-unused-parameter'
	* gnome/applet/applet-compat.c, gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-info.c, gnome/applet/applet-dbus.c,
	  gnome/applet/applet.c, gnome/applet/applet.h, src/nm-dbus-device.c,
	  gnome/applet/nm-gconf-wso-wep.c, gnome/applet/nm-gconf-wso-wpa-psk.c,
	  gnome/applet/nm-gconf-wso.c, gnome/applet/nm-gconf-wso.h,
	  gnome/applet/other-network-dialog.c, src/nm-device.c, test/nm-tool.c,
	  gnome/applet/passphrase-dialog.c, src/nm-device-802-11-wireless.c,
	  gnome/applet/wireless-security-manager.c, src/nm-ip4-config.c,
	  gnome/applet/wireless-security-option.c, src/nm-ap-security.c,
	  gnome/applet/wso-wep-ascii.c, gnome/applet/wso-wep-hex.c,
	  gnome/applet/wso-wep-passphrase.c, gnome/applet/wso-wpa-psk.c,
	  libnm-util/dbus-helpers.c, src/NetworkManagerAP.c, src/nm-dbus-nmi.c,
	  src/NetworkManagerSystem.c, src/nm-ap-security-wep.c,
	  src/nm-device-802-11-wireless.h, test/libnm-util/test-ciphers.c,
	  src/named-manager/nm-named-manager.c, test/test-common/test-common.c:
	  Kill unused variables, labels, and static functions.  Don't pass
	  string literals as the format string for printf-like functions.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1391 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-26 21:08:44 +00:00
Dan Williams
907c305159 2006-01-25 Dan Williams <dcbw@redhat.com>
* gnome/applet/wireless-applet.glade
		- Remove WPA2 Checkbox

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): split up sections for wpa and wpa2.
			This means the Wireless Security menu now has two WPA options,
			one for "WPA Personal" and one for "WPA2 Personal"

	* gnome/applet/wso-wpa-psk.[ch]
		- (wso_wpa_psk_new): remove stuff for WPA2 checkbox, and use
			'wpa2' argument to determine WPA version to use
		- (append_dbus_params_func): pass stored WPA version to cipher
			rather than using the (removed) checkbox


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1388 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-25 15:33:22 +00:00
Robert Love
478d843ef4 gnome/applet/applet.c: revert - whoops - sorry
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1380 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-23 20:38:43 +00:00
Robert Love
d51874eca6 2006-01-23 Robert Love <rml@novell.com>
* Makefile.am, nm-applet.desktop: Add autostart .desktop file, now that
	  gnome-session does autostart.  TODO: We need to install this to
	  $prefix/share/autostart/.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1379 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-23 20:33:45 +00:00
Robert Love
8eb99d62fc 2006-01-16 Robert Love <rml@novell.com>
* gnome/applet/eggtrayicon.c, src/nm-device.c, src/nm-ap-security.c,
	  gnome/applet/nm-gconf-wso-wep.c, gnome/applet/nm-gconf-wso-wpa-psk.c,
	  gnome/applet/nm-gconf-wso.c, src/nm-device-802-3-ethernet.c,
	  gnome/vpn-properties/nm-vpn-properties.c, src/nm-ap-security-wep.c,
	  src/nm-ap-security-wpa-psk.c, src/nm-device-802-11-wireless.c,
	  src/nm-netlink-monitor.c: Don't miss any initializers on structure
	  declarations, ever.
	* gnome/applet/applet.c: Remove useless check (NMState is unsigned and
	  NM_STATE_DISCONNECTED is zero).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1351 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-17 18:22:56 +00:00
Dan Williams
1f868bbd02 Add Tim Niemueller
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1342 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 21:01:25 +00:00
Dan Williams
3cb4470af5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_add_networks_helper): don't indicate an active network
			if NM is disconnected or asleep


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1341 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 19:11:11 +00:00
Dan Williams
a6d596b796 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wso-wpa-psk-hex.[ch]
		- Renamed -> wso-wpa-psk.[ch]

	* gnome/applet/wso-wpa-psk.[ch]
		- New files

	* gnome/applet/wso-wpa-psk-passphrase.[ch]
		- Removed, rolled into wso-wpa-psk.[ch]

	* gnome/applet/Makefile.am
		- Updated for above changes

	* gnome/applet/wireless-applet.glade
		- Consolidate WPA-PSK options into one notebook
			widget, and make dialogs invisible by default
			to fix screen oddities

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): create the new wpa-psk widget rather
			than both the old hex & passphrase ones


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1339 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:34:13 +00:00
Dan Williams
dc74d1bd2d 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): Change text to refer to "name" rather than "ESSID"


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1338 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:21:08 +00:00
Dan Williams
43d36bc3c4 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nmwa_show_vpn_login_banner_dialog, nmwa_show_vpn_failure_dialog,
		   nmwa_driver_notify, show_warning_dialog): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/other-network-dialog.c
		- (nmwa_other_network_dialog_run): fix up focus-stealing
			prevention to realize window before trying to get server
			time

	* gnome/applet/passphrase-dialog.c
		- (nmi_passphrase_dialog_new): fix up focus-stealing
			prevention to realize window before trying to get server
			time


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1337 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 18:20:27 +00:00
Dan Williams
7d82157fc5 2006-01-16 Dan Williams <dcbw@redhat.com>
* gnome/applet/wireless-security-option.c
		- (wso_wpa_create_key_type_model): clarify AES-CCMP algorithm name


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1335 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-16 17:17:25 +00:00
Robert Love
eedee2afac add FIXME
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1328 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-13 20:01:13 +00:00
Robert Love
77c10f94b6 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/wireless-security-manager.c: Fix crash by not asserting
	  that wso_foo_new() returned non-NULL.  Instead, only append the new
	  wso to wsm->options if the wso is non-NULL.  The crux is that we
	  assume that the relevant key types are implied by WEP and WPA as
	  appropriate.  To be sure, they should be, but we should not expect
	  drivers to not be oozing piles of wolf fecal matter.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1319 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:48:39 +00:00
Robert Love
46efeb868a 2006-01-11 Robert Love <rml@novell.com>
* configure.in: Add the gcc flags '-Wshadow' and '-Wfloat-equal'.
	* gnome/applet/applet.c, gnome/vpn-properties/nm-vpn-properties.c,
	  src/NetworkManagerAPList.c, src/NetworkManagerDbus.c,
	  src/NetworkManagerPolicy.c, src/NetworkManagerSystem.c,
	  src/nm-dbus-device.c, src/nm-device-802-3-ethernet.c,
	  src/nm-ip4-config.c, src/vpn-manager/nm-vpn-manager.c,
	  test/nmtestdevices.c: Fix shadowed variable usage as appropriate.
	* src/nm-device-802-11-wireless.c: Fix floating point comparison by
	  comparing values within DBL_EPSILON.  Also fix shadowed variable
	  usage.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1318 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:07:29 +00:00
Dan Williams
f2c3f74a13 2006-01-11 Dan Williams <dcbw@redhat.com>
Add options for WPA2 and WPA1+CCMP (AES).

	* gnome/applet/wireless-applet.glade
		- Add UI bits for WPA+CCMP

	* gnome/applet/other-network-dialog.c
		- (nmwa_ond_init): pass capabilities into the WirelessSecurityManager,
			and don't allow creation of WPA2 Ad-Hoc networks since
			wpa_supplicant doesn't support them

	* gnome/applet/wireless-security-manager.c
		- (wsm_set_capabilities): Add WPA2 options, and pass capability
			on to the specific wireless security option being created

	* gnome/applet/wireless-security-option.[ch]
		- (wso_wpa_create_key_type_model): new utility function to create
			the model required for WPA Key Type combo box

	* gnome/applet/wso-private.h
	  gnome/applet/wireless-security-option.h
		- Move private function prototypes into wso-private.h

	* gnome/applet/wso-wpa-psk-hex.[ch]
	  gnome/applet/wso-wpa-psk-passphrase.[ch]
		- (append_dbus_params_func): get WPA version from checkbox and pass
			it to the dbus serialization helper
		- (key_type_combo_changed_cb): Set the cipher's WE Cipher when the
			key type combo changes
		- (wso_wpa_psk_hex_new): set up the key type combo with the correct
			model and options

	* libnm-util/cipher-wpa-psk-hex.c
	  libnm-util/cipher-wpa-psk-passphrase.c
		- (cipher_wpa_psk_hex_set_we_cipher, cipher_wpa_psk_passphrase_set_we_cipher):
			new function; allow the cipher to be changed after object creation

	* src/nm-ap-security-wpa-psk.c
		- (set_description): Do WPA2 descriptions too

	* src/nm-ap-security.c
		- (nm_ap_security_new_from_ap): allow CCMP with WPA1 too


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1317 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 20:46:26 +00:00
Robert Love
913ee23313 2006-01-11 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-devices.c, gnome/applet/applet-dbus.c,
	  gnome/applet/applet.c, gnome/applet/applet.h: Consolidating
	  assignments to applet->nm_state into a new nmwa_set_state() function
	  for both cleanliness and to help debugging.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 17:08:38 +00:00