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 627344 - Make GtkTargetEntry a boxed type for introspection
Make GtkTargetEntry a boxed type for introspection
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 627482
 
 
Reported: 2010-08-19 09:07 UTC by jessevdk@gmail.com
Modified: 2018-02-10 03:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make GtkTargetEntry a boxed type (2.97 KB, patch)
2010-08-19 09:07 UTC, jessevdk@gmail.com
none Details | Review

Description jessevdk@gmail.com 2010-08-19 09:07:58 UTC
Created attachment 168271 [details] [review]
Make GtkTargetEntry a boxed type

Currently, GtkTargetEntry cannot be used from introspected bindings because it has a string field (target) which cannot be assigned to from introspection. A boxed type should be introduced with a convenience constructor to create a new GtkTargetEntry. Patch attached.
Comment 1 jessevdk@gmail.com 2010-08-26 15:58:02 UTC
Ping. Could someone maybe review the patch/give feedback. I would like this to go in.
Comment 2 Matthias Clasen 2010-08-26 18:07:07 UTC
I have to admit that I am a bit confused. Why is this an issue for GtkTargetEntry and not for the fifty other struct types in gtkselection.h ?
Comment 3 Christian Persch 2010-08-26 18:08:15 UTC
This conflicts a bit with bug 565665. Maybe GtkTargetEntry.target should be an interned string instead of strdup'd here?
Comment 4 jessevdk@gmail.com 2010-08-26 19:01:46 UTC
I don't think you need to be confused, I made the patch on a case basis. Also, there is hardly fifty structs in gtkselection.h (and it's only a problem for structs with pointers).

Making it const is a problem because you can't bind that at all anymore.
Comment 5 jessevdk@gmail.com 2010-08-26 20:17:53 UTC
Yes, interning would work. If you want, I can also fix it for the other two structs.
Comment 6 jessevdk@gmail.com 2010-10-17 18:16:59 UTC
Ping. I'd like a confirmation that I can go ahead with this approach.
Comment 7 Matthias Clasen 2010-10-18 13:30:22 UTC
We've now made GtkTargetEntry a boxed type. 

So whats left here is just string interning.
Comment 8 Matthias Clasen 2018-02-10 03:32:37 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.