GNOME Bugzilla – Bug 755752
Rename namespace to Gsv
Last modified: 2021-07-05 11:02:18 UTC
File a bug about it so we have a nice list of target bugs for GtkSourceView 4. Rename the namespace from GtkSource to Gsv, to not conflict with Gtk and have shorter code. This can be useful: https://github.com/swilmet/gnome-c-utils
I think it's safe to use the Gsv namespace, it is normally not yet used in Debian (if it can serve as any reference for Free Software). https://codesearch.debian.net/search?q=%5B%5Ct+%5Dgsv_+filetype%3Ac+ I searched "[\t ]gsv_ filetype:c", and there is no other library using the Gsv namespace. In several packages there is a copy of a "gsv_text" class coming from agg, but the namespace is agg, so no problem. The other results are just variable names or irrelevant stuff.
(In reply to Sébastien Wilmet from comment #0) > This can be useful: > https://github.com/swilmet/gnome-c-utils For the record, I thought that all the scripts were ready to do the namespace change, but a script to reformat the headers is missing.
As I'm not going to fix this bug anytime soon (see [1]), I'll share my TODO list. - Write the gcu-format-header script. Ideally based on libclang (I've already started to learn libclang, I can share my test program). - Write a script to rename the namespace in GtkSourceView, using gnome-c-utils (it would be better to refactor gcu to be able to call functions instead of launching processes). The library should still be named "GtkSourceView", but references to the GtkSourceView widget should be renamed of course. So the script should be smart and if the "GtkSourceView" occurrence appears in a comment, rename it only if it is "#GtkSourceView". Because the gtk-doc comments sometimes refer to "the GtkSourceView library", and that should not be renamed. [1] https://mail.gnome.org/archives/gnome-devtools/2017-July/msg00000.html "State of GtkSourceView 4"
Remove 4.0 target milestone. This won't happen for 4.0. Error: not enough funding.
The namespace rename can be done in a future major version. See how it was planned for GtkSourceView 4: https://wiki.gnome.org/Projects/GtkSourceView/TransitionToGtkSourceView4 But I'm not sure it is worth to rename the namespace, it's a lot of work, for both us (in GtkSourceView itself) and for all the applications or higher-level libraries.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/ Thank you for your understanding and your help.