NetworkManager r3648 - in trunk: . system-settings/plugins/ifcfg-suse
- From: tambeti svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3648 - in trunk: . system-settings/plugins/ifcfg-suse
- Date: Fri, 9 May 2008 10:30:03 +0100 (BST)
Author: tambeti
Date: Fri May 9 09:30:03 2008
New Revision: 3648
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3648&view=rev
Log:
2008-05-09 Tambet Ingo <tambet gmail com>
* system-settings/plugins/ifcfg-suse/nm-suse-connection.c: Implement
NMExportedConnection's 'update' and 'delete' and return error with
descriptive message.
Modified:
trunk/ChangeLog
trunk/system-settings/plugins/ifcfg-suse/Makefile.am
trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c
Modified: trunk/system-settings/plugins/ifcfg-suse/Makefile.am
==============================================================================
--- trunk/system-settings/plugins/ifcfg-suse/Makefile.am (original)
+++ trunk/system-settings/plugins/ifcfg-suse/Makefile.am Fri May 9 09:30:03 2008
@@ -15,6 +15,7 @@
$(GLIB_CFLAGS) \
$(GMODULE_CFLAGS) \
$(DBUS_CFLAGS) \
+ $(POLKIT_CFLAGS) \
-DG_DISABLE_DEPRECATED \
-I${top_srcdir}/system-settings/src \
-I$(top_srcdir)/include \
@@ -26,6 +27,7 @@
libnm_settings_plugin_ifcfg_suse_la_LIBADD = \
$(GLIB_LIBS) \
$(GMODULE_LIBS) \
+ $(POLKIT_LIBS) \
$(GIO_LIBS) \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/libnm-glib/libnm_glib.la
Modified: trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c
==============================================================================
--- trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c (original)
+++ trunk/system-settings/plugins/ifcfg-suse/nm-suse-connection.c Fri May 9 09:30:03 2008
@@ -6,6 +6,7 @@
#include <NetworkManager.h>
#include "nm-suse-connection.h"
#include "parser.h"
+#include "nm-polkit-helpers.h"
G_DEFINE_TYPE (NMSuseConnection, nm_suse_connection, NM_TYPE_SYSCONFIG_CONNECTION)
@@ -103,6 +104,26 @@
return NM_SUSE_CONNECTION_GET_PRIVATE (exported)->filename;
}
+static gboolean
+update (NMExportedConnection *exported,
+ GHashTable *new_settings,
+ GError **err)
+{
+ g_set_error (err, NM_SYSCONFIG_SETTINGS_ERROR, NM_SYSCONFIG_SETTINGS_ERROR_GENERAL,
+ "%s", "Please use YaST to change this connection.");
+
+ return FALSE;
+}
+
+static gboolean
+delete (NMExportedConnection *exported, GError **err)
+{
+ g_set_error (err, NM_SYSCONFIG_SETTINGS_ERROR, NM_SYSCONFIG_SETTINGS_ERROR_GENERAL,
+ "%s", "Please use YaST to remove this connection.");
+
+ return FALSE;
+}
+
/* GObject */
static void
@@ -141,4 +162,6 @@
connection_class->get_settings = get_settings;
connection_class->get_id = get_id;
+ connection_class->update = update;
+ connection_class->delete = delete;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]