aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-config.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-07 15:02:25 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-07 15:02:25 +0800
commit128a31facdd7835962ad73be938a413928dc1210 (patch)
tree15691cb1da5503197043316eb0fa28bcaf9d7153 /e-util/e-config.c
parentaf2b573dac1cfa7f88a2c1a00d106c98bf419a15 (diff)
downloadgsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar.gz
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar.bz2
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar.lz
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar.xz
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.tar.zst
gsoc2013-evolution-128a31facdd7835962ad73be938a413928dc1210.zip
Don't let the 'id' field, which identifies the target menu/whatever, to be
2005-02-07 Not Zed <NotZed@Ximian.com> * e-popup.c (emph_construct_menu): * e-menu.c (emph_construct_menu): * e-config.c (emph_construct_menu): Don't let the 'id' field, which identifies the target menu/whatever, to be NULL, otherwise it gets added to all. svn path=/trunk/; revision=28728
Diffstat (limited to 'e-util/e-config.c')
-rw-r--r--e-util/e-config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/e-util/e-config.c b/e-util/e-config.c
index c628ae33dc..54566adfe5 100644
--- a/e-util/e-config.c
+++ b/e-util/e-config.c
@@ -1358,6 +1358,11 @@ emph_construct_menu(EPluginHook *eph, xmlNodePtr root)
menu->target_type = map->id;
menu->id = e_plugin_xml_prop(root, "id");
+ if (menu->id == NULL) {
+ g_warning("Plugin '%s' missing 'id' field in group for '%s'\n", eph->plugin->name,
+ ((EPluginHookClass *)G_OBJECT_GET_CLASS(eph))->id);
+ goto error;
+ }
menu->check = e_plugin_xml_prop(root, "check");
menu->commit = e_plugin_xml_prop(root, "commit");
menu->abort = e_plugin_xml_prop(root, "abort");