GNOME Bugzilla – Bug 50209
Need a G_TYPE_ for non-nul-terminated strings
Last modified: 2013-10-25 05:10:40 UTC
Some signals have string arguments that are not nul-terminated; instead, a length is passed in. This breaks because G_TYPE_STRING assumes nul termination and copies the string with g_strdup(). As with boxed types, we need to be able to pass a string to a signal without copying it; e.g. insert_text can take extremely long strings, which would be quite a performance hit to copy.
Setting all outstanding bugs against 1.3.x to be due for the 2.0.0 milestone; will go through and move some of them to API freeze milestone and set milestone to none for punted features.
Moving GLib bugs with API keyword to the API freeze milestone
Created attachment 430 [details] [review] start at G_TYPE_BYTES, still needs glib-genmarshal.c fixes
Created attachment 431 [details] [review] Second version with glib-genmarshal.c changes
Moved to future milestone due to complete disgareement on ordering - Tim feels that an ordering incompatible with signals like ::insert_text is necessary, so we'll just have to keep G_TYPE_POINTER in there for now.
We have G_TYPE_BYTES these days.