[libpeas] Remove the plugin-info prop if it doesn't exits.



commit 908e73d9253b899e2b6dbd5386461a05a78ec94c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jul 29 18:52:45 2010 +0200

    Remove the plugin-info prop if it doesn't exits.

 libpeas/peas-object-module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index 5696a96..ede0e9e 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -395,7 +395,7 @@ create_gobject_from_type (guint       n_parameters,
    * property to avoid a warning. */
   if (n_parameters > 1 &&
       strcmp (parameters[n_parameters-1].name, "plugin-info") == 0 &&
-      g_object_class_find_property (cls, "plugin-info") != NULL)
+      g_object_class_find_property (cls, "plugin-info") == NULL)
     n_parameters --;
 
   instance = G_OBJECT (g_object_newv (exten_type, n_parameters, parameters));



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