From 006377f9d29bcec7b19e39de0d4bf06d9d7ce077 Mon Sep 17 00:00:00 2001 From: Daniel Gnoutcheff Date: Wed, 4 Aug 2010 01:54:10 -0500 Subject: [PATCH] ifupdown: fix connection class inheritance NMIfupdownConnection really is a subclass of NMSysconfigConnection (as declared via the G_DEFINE_TYPE macro in nm-ifconfig-connection.c), but the header incorrectly used NMExportedConnection* in the class and instance structs. We got away with it because NMSysconfigConnection* didn't contain anything other than the stuff inherited from NMExportedConnection*, but it would have caused much trouble if we did add something. --- system-settings/plugins/ifupdown/nm-ifupdown-connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-settings/plugins/ifupdown/nm-ifupdown-connection.h b/system-settings/plugins/ifupdown/nm-ifupdown-connection.h index 4eb20e5032..2aa74df6b7 100644 --- a/system-settings/plugins/ifupdown/nm-ifupdown-connection.h +++ b/system-settings/plugins/ifupdown/nm-ifupdown-connection.h @@ -39,11 +39,11 @@ G_BEGIN_DECLS #define NM_IFUPDOWN_CONNECTION_IFBLOCK "ifblock" typedef struct { - NMExportedConnection parent; + NMSysconfigConnection parent; } NMIfupdownConnection; typedef struct { - NMExportedConnectionClass parent; + NMSysconfigConnectionClass parent; } NMIfupdownConnectionClass; GType nm_ifupdown_connection_get_type (void);