aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin.h
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-12-04 18:57:59 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-04 18:57:59 +0800
commitf4d3ee5d5923e8a91b45fc6dd8eb8fb2857f41de (patch)
tree3ef9dad0d4187b2b42f3e7216a88b07e885dba79 /e-util/e-plugin.h
parent70663baf3f0e922ed4f6c5560880b66281aaf037 (diff)
downloadgsoc2013-evolution-f4d3ee5d5923e8a91b45fc6dd8eb8fb2857f41de.tar.gz
gsoc2013-evolution-f4d3ee5d5923e8a91b45fc6dd8eb8fb2857f41de.tar.zst
gsoc2013-evolution-f4d3ee5d5923e8a91b45fc6dd8eb8fb2857f41de.zip
** Fix for bug #500210
2007-12-04 Milan Crha <mcrha@redhat.com> ** Fix for bug #500210 * plugins/plugin-manager/plugin-manager.c: Changed coding-style to be more accurate to other sources, but the main change was to show configuration options of the plugin into extra tab, instead of new popup under 'Configure' button. * e-util/e-plugin.h: * e-util/e-plugin.c: (e_plugin_configure), (e_plugin_is_configurable), (epl_configure), (e_plugin_get_configure_widget), (epl_get_configure_widget): Removed old configure functions, replaced by get_configure_widget functions, to be able show plugin configuration in a tab of plugin manager. svn path=/trunk/; revision=34639
Diffstat (limited to 'e-util/e-plugin.h')
-rw-r--r--e-util/e-plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-plugin.h b/e-util/e-plugin.h
index 1d628dacd4..07795d0ca8 100644
--- a/e-util/e-plugin.h
+++ b/e-util/e-plugin.h
@@ -5,6 +5,7 @@
#include <glib.h>
#include <glib-object.h>
#include <libxml/tree.h>
+#include <gtk/gtkwidget.h>
/* ********************************************************************** */
@@ -85,7 +86,7 @@ struct _EPluginClass {
int (*construct)(EPlugin *, xmlNodePtr root);
void *(*invoke)(EPlugin *, const char *name, void *data);
void (*enable)(EPlugin *, int state);
- void (*configure)(EPlugin *);
+ GtkWidget *(*get_configure_widget)(EPlugin *);
};
GType e_plugin_get_type(void);
@@ -99,9 +100,8 @@ void e_plugin_register_type(GType type);
void *e_plugin_invoke(EPlugin *ep, const char *name, void *data);
void e_plugin_enable(EPlugin *eph, int state);
-void e_plugin_configure (EPlugin *eph);
-gboolean e_plugin_is_configurable (EPlugin *ep);
+GtkWidget *e_plugin_get_configure_widget (EPlugin *ep);
/* static helpers */
/* maps prop or content to 'g memory' */
@@ -123,7 +123,7 @@ typedef void *(*EPluginLibFunc)(EPluginLib *ep, void *data);
* initialised. In the future it may also be called when the plugin
* is disabled. */
typedef int (*EPluginLibEnableFunc)(EPluginLib *ep, int enable);
-typedef int (*EPluginLibConfigureFunc)(EPluginLib *ep);
+typedef void *(*EPluginLibGetConfigureWidgetFunc)(EPluginLib *ep);
/**
* struct _EPluginLib -