After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770639 - The position argument of 'insert-text' callback is wrongly converted by gi
The position argument of 'insert-text' callback is wrongly converted by gi
Status: RESOLVED DUPLICATE of bug 727738
Product: gtk+
Classification: Platform
Component: Language Bindings
unspecified
Other OpenBSD
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-08-31 10:42 UTC by Cédric Krier
Modified: 2017-03-29 19:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test script (369 bytes, text/x-python-script)
2016-08-31 10:42 UTC, Cédric Krier
Details

Description Cédric Krier 2016-08-31 10:42:14 UTC
Created attachment 334522 [details]
Test script

The Gtk-3.0.gir file define it as c:type="gpointer" instead of c:type="gint*".
So a warning is raised when the callback is called:
Warning: g_value_get_int: assertion 'G_VALUE_HOLDS_INT (value)' failed

Here is attached a python test file which shows the warning each time text is typed in the entry. It also shows that the position argument is always 0.
Comment 1 Christoph Reiter (lazka) 2017-03-29 19:07:42 UTC

*** This bug has been marked as a duplicate of bug 727738 ***