[evolution-patches] Patch to not contstruct menus for disabled plug-ins
- From: Rodney Dawes <dobey novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Patch to not contstruct menus for disabled plug-ins
- Date: Fri, 11 Feb 2005 14:18:30 -0500
The following patch disables menu construction for disabled plug-ins.
This solves the problem of plug-in menus being loaded and breaking
normal menu structure.
-- dobey
Index: e-util/e-menu.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-menu.c,v
retrieving revision 1.6
diff -u -p -r1.6 e-menu.c
--- e-util/e-menu.c 7 Feb 2005 07:02:25 -0000 1.6
+++ e-util/e-menu.c 11 Feb 2005 19:16:39 -0000
@@ -814,6 +814,9 @@ emph_construct(EPluginHook *eph, EPlugin
d(printf("loading menu hook\n"));
+ if (!ep->enabled)
+ return 0;
+
if (((EPluginHookClass *)emph_parent_class)->construct(eph, ep, root) == -1)
return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]