[libchamplain] Don't invoke gperl_callback_invoke() with the extra data gpointer.
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Don't invoke gperl_callback_invoke() with the extra data gpointer.
- Date: Fri, 12 Jun 2009 00:59:58 -0400 (EDT)
commit 7133a29950f14d980c68ec3809395bec79d864b9
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date: Tue May 19 12:08:15 2009 +0200
Don't invoke gperl_callback_invoke() with the extra data gpointer.
The data gpointer is used to pass the Perl callback. It makes no sense to pass
it back to the Perl callback.
.../perl/Champlain/xs/ChamplainMapSourceFactory.xs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs b/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs
index 50dffda..3cc403e 100644
--- a/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs
+++ b/bindings/perl/Champlain/xs/ChamplainMapSourceFactory.xs
@@ -19,8 +19,8 @@ champlainperl_constructor (ChamplainMapSourceDesc *desc, gpointer data) {
}
g_value_init(&return_value, callback->return_type);
-
- gperl_callback_invoke(callback, &return_value, desc, data);
+ /* FIXME desc is not passed as a Champlain::MapSourceDesc to the perl callback */
+ gperl_callback_invoke(callback, &return_value, desc);
retval = g_value_get_object (&return_value);
g_value_unset(&return_value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]