From 131a11a8a67c8d944a77227f7bed35aee1a127cb Mon Sep 17 00:00:00 2001 From: Sankar P Date: Fri, 26 Oct 2007 10:54:17 +0000 Subject: ** Fix for bug #461272 2007-10-26 Sankar P ** Fix for bug #461272 * plugin-manager.c: (eppm_selection_changed), (org_gnome_plugin_manager_manage): Configure button should not be enabled for all. configure button needs a hot-key. svn path=/trunk/; revision=34432 --- e-util/e-plugin.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'e-util/e-plugin.c') diff --git a/e-util/e-plugin.c b/e-util/e-plugin.c index edcdb4d43c..bdfe12c9b1 100644 --- a/e-util/e-plugin.c +++ b/e-util/e-plugin.c @@ -929,8 +929,8 @@ epl_construct(EPlugin *ep, xmlNodePtr root) return 0; } -static void -epl_configure (EPlugin *ep) +gboolean +e_plugin_is_configurable (EPlugin *ep) { EPluginLibConfigureFunc configure; @@ -938,9 +938,24 @@ epl_configure (EPlugin *ep) if (epl_loadmodule(ep) != 0) { pd(printf ("\n epl_loadmodule \n")); - return; + return FALSE; + } + + if (g_module_symbol(epl->module, "e_plugin_lib_configure", (void *)&configure)) { + pd(printf ("\n g_module_symbol is loaded\n")); + return TRUE; } + return FALSE; +} + +static void +epl_configure (EPlugin *ep) +{ + EPluginLibConfigureFunc configure; + + pd(printf ("\n epl_configure \n")); + /* Probably we dont need a load_module */ if (g_module_symbol(epl->module, "e_plugin_lib_configure", (void *)&configure)) { pd(printf ("\n g_module_symbol is loaded\n")); configure (epl); -- cgit v1.2.3