From 7013e0891ab0636ab9a98019410b832db8c6c315 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 29 Oct 2009 08:14:33 -0400 Subject: Bug 600014 - Remove warnings from ech_config_widget_factory() --- e-util/e-config.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'e-util') diff --git a/e-util/e-config.c b/e-util/e-config.c index 5925489dd8..038e54f00c 100644 --- a/e-util/e-config.c +++ b/e-util/e-config.c @@ -1567,7 +1567,6 @@ ech_config_widget_factory (EConfig *config, { struct _EConfigHookGroup *group = data; EConfigHookItemFactoryData factory_data; - GtkWidget *widget; EPlugin *plugin; factory_data.config = config; @@ -1577,20 +1576,7 @@ ech_config_widget_factory (EConfig *config, factory_data.old = old; plugin = group->hook->hook.plugin; - widget = e_plugin_invoke (plugin, item->user_data, &factory_data); - - /* Sanity check the result. */ - if (widget == NULL) - g_warning ( - "%s() returned NULL instead of a GtkWidget", - (gchar *) item->user_data); - else if (!GTK_IS_WIDGET (widget)) - g_warning ( - "%s() returned a %s instead of a GtkWidget", - (gchar *) item->user_data, - G_OBJECT_TYPE_NAME (widget)); - - return widget; + return e_plugin_invoke (plugin, item->user_data, &factory_data); } static GtkWidget * -- cgit