aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-29 20:14:33 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-29 20:14:33 +0800
commit7013e0891ab0636ab9a98019410b832db8c6c315 (patch)
tree8ef8c6fb6682bb6cb3513b7395bc5b237d581ab9 /e-util
parent1f455a08558bac17ba1f33b3d53a6dde02cbeb31 (diff)
downloadgsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.tar.gz
gsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.tar.zst
gsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.zip
Bug 600014 - Remove warnings from ech_config_widget_factory()
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-config.c16
1 files changed, 1 insertions, 15 deletions
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 *