diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-29 20:14:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-29 20:14:33 +0800 |
commit | 7013e0891ab0636ab9a98019410b832db8c6c315 (patch) | |
tree | 8ef8c6fb6682bb6cb3513b7395bc5b237d581ab9 | |
parent | 1f455a08558bac17ba1f33b3d53a6dde02cbeb31 (diff) | |
download | gsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.tar.gz gsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.tar.zst gsoc2013-evolution-7013e0891ab0636ab9a98019410b832db8c6c315.zip |
Bug 600014 - Remove warnings from ech_config_widget_factory()
-rw-r--r-- | e-util/e-config.c | 16 |
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 * |