[libpeas] Add a warning if IAge is not found when creating PeasPluginInfo
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Add a warning if IAge is not found when creating PeasPluginInfo
- Date: Wed, 15 Dec 2010 19:41:20 +0000 (UTC)
commit fcf624519ca3b26265a9c76bc022f865e2cc1bfe
Author: Garrett Regier <alias301 gmail com>
Date: Tue Dec 14 10:42:36 2010 -0800
Add a warning if IAge is not found when creating PeasPluginInfo
libpeas/peas-plugin-info.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index ae483d0..316776d 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -215,7 +215,10 @@ _peas_plugin_info_new (const gchar *filename,
}
if (!g_key_file_has_key (plugin_file, "Plugin", "IAge", NULL))
- goto error;
+ {
+ g_warning ("Could not find 'IAge' in '%s'", filename);
+ goto error;
+ }
integer = g_key_file_get_integer (plugin_file, "Plugin", "IAge", NULL);
info->iage = integer <= 0 ? 0 : integer;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]