diff options
author | Garrett Regier <alias301@gmail.com> | 2011-02-19 06:08:47 -0800 |
---|---|---|
committer | Garrett Regier <alias301@gmail.com> | 2011-02-19 06:10:54 -0800 |
commit | 2fe3b1ae664d3d97bb15bf09e93cb25aec6c3b6c (patch) | |
tree | a32e20e745a7780dd7385a2034a847728b04544c /libpeas/peas-object-module.c | |
parent | dc8ac36be40526baa4ae3a71af5db0e193263384 (diff) | |
download | libpeas-2fe3b1ae664d3d97bb15bf09e93cb25aec6c3b6c.tar.gz |
Correctly Fix C plugins that do not inherit from PeasExtensionBase
Diffstat (limited to 'libpeas/peas-object-module.c')
-rw-r--r-- | libpeas/peas-object-module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c index 2589998..7c09331 100644 --- a/libpeas/peas-object-module.c +++ b/libpeas/peas-object-module.c @@ -419,10 +419,10 @@ create_gobject_from_type (guint n_parameters, * called with a "plugin-info" property appended to the parameters. * Let's get rid of it if the actual type doesn't have such a * property to avoid a warning. */ - if (n_parameters > 1 && + if (n_parameters > 0 && strcmp (parameters[n_parameters-1].name, "plugin-info") == 0 && g_object_class_find_property (cls, "plugin-info") == NULL) - n_parameters --; + n_parameters--; instance = G_OBJECT (g_object_newv (exten_type, n_parameters, parameters)); |