network-manager-applet r982 - in trunk: . src/connection-editor



Author: dcbw
Date: Mon Oct 27 17:10:15 2008
New Revision: 982
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=982&view=rev

Log:
2008-10-27  Dan Williams  <dcbw redhat com>

	* src/connection-editor/nm-connection-editor.c
		- Revert unintended checkin for read-only connections that snuck into
			the previous commit



Modified:
   trunk/ChangeLog
   trunk/src/connection-editor/nm-connection-editor.c

Modified: trunk/src/connection-editor/nm-connection-editor.c
==============================================================================
--- trunk/src/connection-editor/nm-connection-editor.c	(original)
+++ trunk/src/connection-editor/nm-connection-editor.c	Mon Oct 27 17:10:15 2008
@@ -167,7 +167,6 @@
 system_checkbutton_toggled_cb (GtkWidget *widget, NMConnectionEditor *editor)
 {
 	gboolean req_privs = FALSE;
-	NMSettingConnection *s_con;
 
 	/* If the connection was originally a system connection, obviously
 	 * privileges are required to change it.  If it was originally a user
@@ -186,11 +185,6 @@
 	else
 		g_object_set (editor->system_gnome_action, "polkit-action", NULL, NULL);
 
-	/* Can't ever modify read-only connections */
-	s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (editor->connection, NM_TYPE_SETTING_CONNECTION));
-	if (nm_setting_connection_get_read_only (s_con))
-		gtk_widget_set_sensitive (editor->ok_button, FALSE);
-
 	connection_editor_validate (editor);
 }
 
@@ -226,16 +220,8 @@
 static void
 update_sensitivity (NMConnectionEditor *editor, PolKitResult pk_result)
 {
-	NMSettingConnection *s_con;
 	gboolean denied = FALSE;
 
-	s_con = NM_SETTING_CONNECTION (nm_connection_get_setting (editor->connection, NM_TYPE_SETTING_CONNECTION));
-	/* Can't ever modify read-only connections */
-	if (nm_setting_connection_get_read_only (s_con)) {
-		set_editor_sensitivity (editor, FALSE);
-		return;
-	}
-
 	if (pk_result == POLKIT_RESULT_UNKNOWN)
 		pk_result = polkit_gnome_action_get_polkit_result (editor->system_gnome_action);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]