diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2012-07-27 13:15:54 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2012-07-27 13:15:54 +0200 |
commit | edb85e972051aff3cfcd5990ea1bd8a28dddc9d9 (patch) | |
tree | 922721c3a5491d87876bdf6f4e218bf2151af4d4 /src/settings/plugins/example | |
parent | 915cfe8ce8eee78e9be387b5e87fcf31362ee82d (diff) | |
download | NetworkManager-edb85e972051aff3cfcd5990ea1bd8a28dddc9d9.tar.gz |
core: fix NM_IS_*_CLASS(klass) macros
The argument is 'klass' not 'obj'.
Diffstat (limited to 'src/settings/plugins/example')
-rw-r--r-- | src/settings/plugins/example/nm-example-connection.h | 2 | ||||
-rw-r--r-- | src/settings/plugins/example/plugin.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/settings/plugins/example/nm-example-connection.h b/src/settings/plugins/example/nm-example-connection.h index d6d09e16fe..6d57a1ad21 100644 --- a/src/settings/plugins/example/nm-example-connection.h +++ b/src/settings/plugins/example/nm-example-connection.h @@ -30,7 +30,7 @@ G_BEGIN_DECLS #define NM_EXAMPLE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_EXAMPLE_CONNECTION, NMExampleConnection)) #define NM_EXAMPLE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_EXAMPLE_CONNECTION, NMExampleConnectionClass)) #define NM_IS_EXAMPLE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_EXAMPLE_CONNECTION)) -#define NM_IS_EXAMPLE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_EXAMPLE_CONNECTION)) +#define NM_IS_EXAMPLE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_EXAMPLE_CONNECTION)) #define NM_EXAMPLE_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_EXAMPLE_CONNECTION, NMExampleConnectionClass)) typedef struct { diff --git a/src/settings/plugins/example/plugin.h b/src/settings/plugins/example/plugin.h index 23b68e2e28..f10ee1c42c 100644 --- a/src/settings/plugins/example/plugin.h +++ b/src/settings/plugins/example/plugin.h @@ -31,7 +31,7 @@ #define SC_PLUGIN_EXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SC_TYPE_PLUGIN_EXAMPLE, SCPluginExample)) #define SC_PLUGIN_EXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SC_TYPE_PLUGIN_EXAMPLE, SCPluginExampleClass)) #define SC_IS_PLUGIN_EXAMPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SC_TYPE_PLUGIN_EXAMPLE)) -#define SC_IS_PLUGIN_EXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), SC_TYPE_PLUGIN_EXAMPLE)) +#define SC_IS_PLUGIN_EXAMPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SC_TYPE_PLUGIN_EXAMPLE)) #define SC_PLUGIN_EXAMPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SC_TYPE_PLUGIN_EXAMPLE, SCPluginExampleClass)) typedef struct { |