Commit graph

287 commits

Author SHA1 Message Date
Dan Williams
98465c40dd Update pending call limits on applet & NM
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2035 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-09-21 00:39:36 +00:00
Dan Williams
1dbe9fd061 2006-08-06 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus-devices.c
	  gnome/applet/applet-dbus-vpn.c
	  gnome/applet/applet-dbus.c
	  gnome/applet/applet-dbus.h
	  src/nm-dbus-nmi.c
	  utils/nm-utils.c
	  utils/nm-utils.h
		- Make pending call tracking code generic,
		so we can use it in NM as well as the applet


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1940 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-07 03:06:11 +00:00
Robert Love
8500b5c26d 2006-08-01 Robert Love <rml@novell.com>
* gnome/applet/main.c: Shutdown all VPN connections on logout.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1904 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-08-01 22:04:52 +00:00
Dan Williams
3c10e4401f 2006-07-13 Dan Williams <dcbw@redhat.com>
Patch from Thiago Bauermann <thiago.bauermann@gmail.com>
	* gnome/applet/applet.glade
	  gnome/applet/Makefile.am
	  gnome/applet/nm-gconf-wso.c
	  gnome/applet/nm-gconf-wso-leap.c
	  gnome/applet/nm-gconf-wso-leap.h
	  gnome/applet/wireless-security-manager.c
	  gnome/applet/wso-leap.c
	  gnome/applet/wso-leap.h
	  include/NetworkManager.h
	  libnm-util/dbus-helpers.c
	  libnm-util/dbus-helpers.h
	  src/Makefile.am
	  src/NetworkManagerAP.c
	  src/nm-ap-security.c
	  src/nm-ap-security-leap.c
	  src/nm-ap-security-leap.h
		- Add LEAP authentication support


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1881 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-13 17:03:31 +00:00
Dan Williams
8b992922d0 2006-07-09 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nma_destroy): don't pass NULL to notify_notification_close
			(RH #197917)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1865 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-09 23:38:54 +00:00
Dan Williams
e2bd1d1a03 2006-07-09 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.c
		- (nma_about_cb): remove empty documenters tab (Gnome #341324)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1864 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-07-09 23:06:55 +00:00
Robert Love
2f83566a03 2006-06-15 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-eap.c: Don't set the Gconf keys unless
	  we have a value to set.  Gconf generates a warning if `val' is NULL.
	* src/nm-ap-security-wpa-eap.c: Don't set the key for an Enterprise AP
	  unless we actually received a valid private key file passphrase or
	  password.  Otherwise, we don't know to later ask the applet to pull
	  the key from the keyring.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1845 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-19 17:43:18 +00:00
Robert Love
ae2d3d7730 2006-06-15 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-eap.c: Don't set the set unless there
	  is a non-empty key to set.  Elsewhere, pass an empty string via DBUS
	  if there is no key to pass.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1833 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-15 16:43:51 +00:00
Robert Love
eb13a05c2b 2006-06-13 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: Don't set the fallback bit to FALSE
	  if it is currently set to TRUE.  Otherwise, we will reset the value
	  when we connect normally.
	* src/nm-device-802-11-wireless.c: For the roaming code, make sure that
	  the old BSSID is valid, too.  The recently added ESSID check may not be
	  sufficient (we can remove it?).  What we really want to catch is the
	  case of going from all-zeros to the BSSID of some other network, which
	  happens on failure.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1823 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-13 19:54:22 +00:00
Robert Love
75478a3768 2006-06-08 Robert Love <rml@novell.com>
Add 'fallback' support.  NetworkManager will attempt to brute-force
	connect to networks marked as fallback if there are no better wireless
	connections available.  This is useful as a method of last resort, to
	work around driver problems, and for use with hidden networks.
	* gnome/applet/applet-dbus-devices.c,
	  gnome/applet/applet-dbus-devices.h: Add fallback parameter.
	* gnome/applet/applet-dbus-info.c: Retrieve fallback bit from Gconf and
	  pass it on via DBUS.
	* gnome/applet/applet.c: No fallback by default.
	* gnome/applet/applet.glade, gnome/applet/other-network-dialog.c:
	  Update other-network-dialog to add UI checkbox toggling fallback.
	* src/NetworkManagerAP.c, src/NetworkManagerAP.h: Remove "trusted"
	  propery from AP object.  Add "fallback" property to AP object.
	* src/nm-dbus-nm.c: Grab the fallback parameter via DBUS.
	* src/nm-dbus-nmi.c: Grab the fallback parameter via DBUS.
	* src/nm-device-802-11-wireless.c: Break out blacklist logic into
	  separate function.  Add get_best_fallback_ap() for returning an AP
	  on which to attempt fallback.
	* src/backends/NetworkManagerSuSE.c: Set stored network as fallback.
	* test/nm-set-fallback: New file.  Sets a given network as fallback.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1814 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-08 21:01:37 +00:00
Robert Love
faeff6152a 2006-06-07 Robert Love <rml@novell.com>
* gnome/applet/gconf-helpers.c: Bug fix: nm_gconf_helper_get_bool()
	  checked that the return type was GCONF_VALUE_STRING, not the correct
	  GCONF_VALUE_BOOL, and thus it never worked.
	* src/NetworkManagerAPList.c: Before concluding that two networks are
	  identical based on their BSSID, make sure that the BSSID in question
	  is actually valid.  Specifically, an empty or all zero BSSID does not
	  cut it.
	* gnome/applet/applet-dbus-info.c, gnome/applet/other-network-dialog.c,
	  src/nm-dbus-nmi.c, src/nm-device-802-11-wireless.c: White space and
	  similar invariant clean up.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1811 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-07 17:35:33 +00:00
Robert Love
f310fc1369 2006-06-02 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Update copyright years.  Add Novell.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1795 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-06-02 14:11:51 +00:00
Dan Williams
272e865f75 2006-05-28 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet.glade
	  gnome/vpn-properties/nm-vpn-properties.glade
		- Set window icons on dialogs  (Gnome.org #333420)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1782 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-29 03:35:16 +00:00
Robert Love
3c1f5a04c5 2006-05-25 Robert Love <rml@novell.com>
* gnome/applet/nm-device.c, gnome/applet/nm-device.h: Rename function
	  parameter from link, because it shadows a global variable with some
	  older versions of glibc.  Yes, glibc is now fixed and, yes, glibc
	  should never have exported to the entire system a common four letter
	  word.  But we here at NetworkManager are team players.  Fixes
	  GNOME bug #336532.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1764 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-25 20:18:02 +00:00
Robert Love
98192881d3 2006-05-24 Robert Love <rml@novell.com>
* examples/python/systray/eggtrayicon.c, gnome/applet/eggtrayicon.c,
	  gnome/applet/passphrase-dialog.c, gnome/applet/vpn-password-dialog.c,
	  src/NetworkManager.c: Include <glib/gi18n.h> and not <libintl.h>.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 15:53:07 +00:00
Robert Love
f560d48b7d 2006-05-24 Robert Love <rml@novell.com>
* gnome/applet/Makefile.am, gnome/vpn-properties/Makefile.am,
	  libnm-util/Makefile.am, src/Makefile.am,
	  vpn-daemons/openvpn/auth-dialog/Makefile.am,
	  vpn-daemons/openvpn/properties/Makefile.am,
	  vpn-daemons/pptp/auth-dialog/Makefile.am,
	  vpn-daemons/pptp/properties/Makefile.am,
	  vpn-daemons/vpnc/auth-dialog/Makefile.am,
	  vpn-daemons/vpnc/properties/Makefile.am: Do not override what the
	  user passed for --datadir, if anything, when setting the GNOME locale
	  directory.  It should be a function of the specified datadir and not
	  the prefix.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1759 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 15:08:22 +00:00
Robert Love
a4ac9ec0fb 2006-05-24 Robert Love <rml@novell.com>
* gnome/applet/main.c, gnome/vpn-properties/nm-vpn-properties.c,
	  src/NetworkManager.c: Take care to call bindtextdomain with the
	  location of msgid files.
	* src/Makefile.am: Set GNOMELOCALEDIR to the location of GNOME mo
	  files.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1758 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-24 14:16:48 +00:00
Robert Love
acfed9816e 2006-05-22 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Zero out the icon pointers before we set them,
	  to avoid calling g_object_unref() on stale pointers on error in
	  nma_icons_free().  This happens because we short-circuit loaded the
	  icons on the first failure but then free all icons.  Normally we have
	  no issue because the icons were zero'ed out malloc, but we have stale
	  pointer data after nma_icon_theme_changed().
	* gnome/applet/main.c: Return error code if nma_new() failed.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1755 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-22 15:17:51 +00:00
Robert Love
8b11dc086a 2006-05-17 Robert Love <rml@novell.com>
Functionality to differentiate Ad-Hoc networks from infrastructure
	networks in the applet, by displaying a special icon:
	* gnome/applet/applet-dbus-devices.c: Set the mode for new networks.
	* gnome/applet/applet.c: Pass 'applet' to network_menu_item_update().
	* gnome/applet/menu-items.c: Set a special icon in the scan list for
	  ad-hoc networks.  TODO: Add a third icon representing "encrypted and
	  Ad-Hoc".  Right now, we display the same icon for all Ad-Hoc wireless
	  networks, encrypted or not.
	* gnome/applet/wireless-network.c, gnome/applet/wireless-network.h: New
	  accessor functions to get and set the mode of a given network,
	  wireless_network_get_mode() and wireless_network_set_mode().


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1741 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-17 20:04:50 +00:00
Robert Love
b428d9d8a2 2006-05-17 Robert Love <rml@novell.com>
Functionality to automatically add BSSIDs to the allowed-MAC list as
	one roams from access point to access point on a given network:
	* src/NetworkManagerUtils.c: Add nm_ethernet_addresses_are_equal(),
	  helper function to compare two ether_addr structures and return TRUE
	  if they contain the same MAC address.
	* src/NetworkManagerUtils.h: Add nm_ethernet_addresses_are_equal()
	  prototype.
	* src/nm-device-802-11-wireless.c: New function to update the BSSID
	  stored with the current AP.  If the BSSID has indeed changed, we
	  send it out to the applet, allowing the allowed-MAC list to grow
	  automatically in response to roaming.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1739 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-17 15:02:57 +00:00
Robert Love
e8942d502a 2006-05-09 Robert Love <rml@novell.com>
* gnome/applet/nm-gconf-wso-wpa-eap.c: Fix FIXME: Save the WPA EAP
	  private certificate passphrase, if any, in the GNOME Keyring.
	* libnm-utils/dbus-helpers.c: Update.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1723 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-09 15:06:41 +00:00
Ryan Lortie
ad87e09b84 2006-05-04 Ryan Lortie <desrt@desrt.ca>
* gnome/applet/passphrase-dialog.c (update_button_cb): Get the SSID of
	  the WirelessNetwork structure using the proper function instead of
	  just casting it directly to (const char *) (gnome.org #336991)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1717 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-04 15:32:45 +00:00
Robert Love
a2dbccec37 2006-05-01 Robert Love <rml@novell.com>
* gnome/applet/applet-compat.c: Warn if the returned escaped ESSID is
	  empty, too.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1713 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-05-01 19:10:57 +00:00
Dan Williams
f2042467b5 2006-04-24 Dan Williams <dcbw@redhat.com>
* gnome/applet/applet-dbus.c
		- Disable the pending call debug stuff, seems under control now


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1702 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-24 20:49:22 +00:00
Robert Love
6fd1cc39d2 2006-04-20 Robert Love <rml@novell.com>
Fix bug where hidden ESSID's would not show up in the applet, even
	if NMI provided a BSSID -> ESSID mapping from Gconf.  This occurred
	because nm_policy_device_list_update_from_allowed_list() would merge
	the data, putting a name to the hidden networks, but never notify NMI
	of the changes.  Simple fix is to invoke the function
	nm_dbus_signal_wireless_network_change() if we make a mapping.
	* src/NetworkManagerAPList.c: Call the function
	  nm_dbus_signal_wireless_network_change() if we made a successful
	  BSSID to ESSID mapping, notifying the applet of the "new" network.
	* src/NetworkManagerAPList.h: Update the prototypes for both
	  nm_ap_list_copy_essids_by_address() and
	  nm_ap_list_copy_one_essid_by_address().


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1700 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-20 20:40:25 +00:00
Robert Love
84b973fd59 2006-04-20 Robert Love <rml@novell.com>
* gnome/applet/applet-dbus-info.c: Don't bail out if the timestamp is
	  not set.  Just return zero.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1697 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-20 16:05:33 +00:00
Robert Love
b33f9e9651 2006-04-04 Robert Love <rml@novell.com>
* gnome/applet/applet.c: Remove the 'Remove' option that I added to the
	  applet.  It just confuses the crap out of people and does not make a
	  lot of sense, as the daemon still runs.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1671 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-04-04 19:39:50 +00:00
Dan Williams
cc2af5e3af 2006-03-27 Dan Williams <dcbw@redhat.com>
Patch from Christian Persch <chpe@gnome.org>
	* gnome/applet/applet.glade
		- HIG fixes; mostly for spacing and borders (gnome.org #336220)


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1653 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 18:55:09 +00:00
Robert Love
3d35794d85 2006-03-27 Robert Love <rml@novell.com>
* gnome/applet/other-network-dialog.c: Do not allow the user to try to
	  create WPA-EAP Ad-Hoc networks because such an action makes no sense.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1642 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 16:02:11 +00:00
Robert Love
b3f938f381 2006-03-27 Robert Love <rml@novell.com>
Patch by Jon Escombe <list@dresco.co.uk>:
	* gnome/applet/nm-gconf-wso.c: Add missing NM_AUTH_TYPE_WPA_EAP case.
	* gnome/applet/nm-gconf-wso-wpa-eap.c: If retrieving the gconf values
	  fail, don't bail out.  We don't expect all of the various WPA-EAP
	  values to be present.
	* src/nm-ap-security.c: We need to match all capabilities for each
	  encryption type, not any one of them.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1640 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-27 15:14:06 +00:00
Christopher Aillon
ff296fdf61 2006-03-24 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet-notifications.c:
	When displaying a notification, make sure to get rid of the
	previous notification so as to not have competing bubbles,
	and stop leaking the old one.

	* gnome/applet/applet.c:
	* gnome/applet/applet.h:
	Add a new 'notification' member to the applet, and zero it out
	and free it appropriately.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1635 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-24 14:55:40 +00:00
Robert Love
89f9c4a17e 2006-03-23 Robert Love <rml@novell.com>
Patch by j <j@bootlab.org>:
	* gnome/applet/applet.glade: Don't set the invisible_char property,
	  which simply overrides the GTK default.  By and by, this behavior
	  ought to be fixed in Glade.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1633 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-23 15:15:45 +00:00
Robert Love
aeec0b1d89 Don't hardcode the zero. The key type is NM_AUTH_TYPE_WPA_PSK_AUTO.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1631 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 21:26:58 +00:00
Robert Love
2edcffb40e 2006-03-22 Robert Love <rml@novell.com>
Bug fix by Timo Hoenig <thoenig@suse.de>:
	* gnome/applet/applet-dbus.c: Let the applet reconnect to DBUS on
	  disconnect.  Otherwise, we have the daemon surviving DBUS restarts
	  and the applet going AWOL.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1630 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 21:17:07 +00:00
Robert Love
db98fe8137 2006-03-22 Robert Love <rml@novell.com>
Implement "Dynamic WEP", which is basically WPA authentication and WEP
	key exchange via WPA, ostensibly providing good security without
	requiring hardware that supports full WPA.  Also, add UI elements to
	allow the user to select the pairwise & group cipher for WPA Enterprise
	networks, too:
	* gnome/applet/applet.glade: Update glade file.
	* gnome/applet/nm-gconf-wso-wpa-eap.c: Serialize and deserialize the
	  key type, too, to and from gconf.
	* gnome/applet/wireless-security-option.c: Add "wpa_eap" parameter to
	  wso_wpa_create_key_type_model(), noting whether we are handling PSK
	  or EAP configuration, and in the latter case add in "Dynamic WEP" if
	  the capabilities match.
	* gnome/applet/wso-private.h: Update wso_wpa_create_key_type_model()'s
	  prototype.
	* gnome/applet/wso-wpa-eap.c: Manage UI elements for the key type and
	  serialize from UI to DBUS.
	* gnome/applet/wso-wpa-psk.c: Cannot fail and always returns at least
	  one element.
	* libnm-util/dbus-helpers.c: Update nmu_security_serialize_wpa_eap(),
	  nmu_security_serialize_wpa_eap_with_cipher(), and
	  nmu_security_deserialize_wpa_eap() to take a "key_type" parameter and
	  serialize/deserialize the key type via DBUS as the new third DBUS
	  parameter.
	* libnm-util/dbus-helpers.h: Update prototypes.
	* src/nm-ap-security-wpa-eap.c: Deserialize the key type from DBUS,
	  too.  If the key type is WEP104, do Dynamic WEP, which means
	  "IEEE8021X" for "key_mgmt".  Also add support for user-specified
	  pairwise and group ciphers (fixes a FIXME).


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1628 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-22 19:52:41 +00:00
Robert Love
7d8af87f15 Hex, not hex, young cheetah.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1611 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-15 20:34:13 +00:00
Robert Love
f8ad81d8bc 2006-03-15 Robert Love <rml@novell.com>
* gnome/applet/applet.glade, gnome/applet/wso-wep-ascii.c,
	  gnome/applet/wso-wep-hex.c, gnome/applet/wso-wep-passphrase.c: The
	  label "WEP 40/128-bit" is inconsistent because the physical key size
	  is 40 or 104-bits, to which a 24-bit initialisation vector is
	  appended, forming a 64 or 128-bit traffic key.  Thus, the label ought
	  to read "40/104" or "64/128".  I do not care much which, but most
	  users think of "silver" and "gold" encryption as 64 and 128-bits, so
	  let's stick with that.  Thus, s/"40/128"/"64/128"/g.  Also, since our
	  WEP passphrase support only handles 128-bit keys, and any future
	  64-bit passphrase support will require a new option (no way to auto-
	  detect the target key size), explicitly label our passphrase support
	  "WEP 128-bit Passphrase".


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1608 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-15 20:27:11 +00:00
Robert Love
a771796641 2006-03-10 Robert Love <rml@novell.com>
* gnome/applet/applet.glade: Add toggles to show/obfuscate the
	  passphrase or key.
	* gnome/applet/wso-wep-ascii.c, gnome/applet/wso-wep-hex.c,
	  gnome/applet/wso-wep-passphrase.c, gnome/applet/wso-wpa-eap.c,
	  gnome/applet/wso-wpa-psk.c: Show and obfuscate passphrases and keys
	  in response to "toggled" signal on new toggle.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1586 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-10 16:38:42 +00:00
Robert Love
a0412efe26 mark noreturn
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1580 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 21:52:31 +00:00
Dan Williams
9e3fccf682 2006-03-09 Dan Williams <dcbw@redhat.com>
Track pending call requests in the applet, and report how many are
	outstanding, and how long each completed one takes.

	* gnome/applet/applet-dbus-devices.c
	  gnome/applet/applet-dbus-vpn.c
		- Track pending calls

	* gnome/applet/applet-dbus.[ch]
		- Remove some unused enums
		- (nma_dbus_send_with_callback, nma_dbus_send_with_callback_replied):
			new functions to track dbus pending calls and spit out some
			statistics about them


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1571 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-09 17:23:00 +00:00
Robert Love
7fb8bf2eea 2006-03-08 Robert Love <rml@novell.com>
* gnome/applet/applet.glade: Hide the password entry text with
	  asterisks.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1565 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-08 18:36:13 +00:00
Robert Love
7bfae91c04 2006-03-06 Robert Love <rml@novell.com>
* gnome/applet/Makefile.am: Define AUTOSTARTDIR.
	* gnome/applet/applet.c: Add 'Remove' option to the right click menu,
	  to exit the applet.  As a sweet side-effect, idea courtesy of Chris
	  Rivera, detect if the applet was auto-started.  If so, ask the user
	  if he or she would like to stop automatically running the applet on
	  login.  If so, disable autostart.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1561 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-07 20:29:20 +00:00
Dan Williams
781e99e38d More compile fixes for no libnotify case
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1553 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-05 21:40:48 +00:00
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