[network-manager-applet/rm-userset] editor: update for permission name changes



commit 2297c4d08330efebad3be8c872857530ee8ee2b2
Author: Dan Williams <dcbw redhat com>
Date:   Sat Feb 12 21:34:42 2011 -0600

    editor: update for permission name changes

 src/connection-editor/nm-connection-editor.c |    6 +++---
 src/connection-editor/nm-connection-list.c   |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index a4fd726..494bd02 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -254,7 +254,7 @@ permissions_changed_cb (NMClient *client,
 	                    NMClientPermissionResult result,                       
                         NMConnectionEditor *editor)
 {
-	if (permission != NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY)
+	if (permission != NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM)
 		return;
 
 	if (result == NM_CLIENT_PERMISSION_RESULT_YES || result == NM_CLIENT_PERMISSION_RESULT_AUTH)
@@ -398,7 +398,7 @@ nm_connection_editor_new (NMConnection *connection,
 
 	editor->client = g_object_ref (client);
 
-	editor->can_modify = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY);
+	editor->can_modify = nm_client_get_permission_result (client, NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
 	editor->permission_id = g_signal_connect (editor->client,
 	                                          "permission-changed",
 	                                          G_CALLBACK (permissions_changed_cb),
@@ -410,7 +410,7 @@ nm_connection_editor_new (NMConnection *connection,
 	                                          _("Authenticate to save this connection for all users of this machine."),
 	                                          GTK_STOCK_APPLY,
 	                                          client,
-	                                          NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY);
+	                                          NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
 	gtk_button_set_use_underline (GTK_BUTTON (editor->ok_button), TRUE);
 
 	g_signal_connect (editor->ok_button, "actionable",
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 60bbc59..d39f523 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -1166,7 +1166,7 @@ add_connection_buttons (NMConnectionList *self,
 	                               _("Authenticate to edit the selected connection"),
 	                               GTK_STOCK_EDIT,
 	                               self->nm_client,
-	                               NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY);
+	                               NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
 	gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 	gtk_box_pack_end (GTK_BOX (hbox), button, TRUE, TRUE, 0);
 
@@ -1184,7 +1184,7 @@ add_connection_buttons (NMConnectionList *self,
 	                               _("Authenticate to delete the selected connection"),
 	                               GTK_STOCK_DELETE,
 	                               self->nm_client,
-	                               NM_CLIENT_PERMISSION_SETTINGS_CONNECTION_MODIFY);
+	                               NM_CLIENT_PERMISSION_SETTINGS_MODIFY_SYSTEM);
 	gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 	gtk_box_pack_end (GTK_BOX (hbox), button, TRUE, TRUE, 0);
 



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