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 755752 - Rename namespace to Gsv
Rename namespace to Gsv
Status: RESOLVED OBSOLETE
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-28 16:39 UTC by Sébastien Wilmet
Modified: 2021-07-05 11:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2015-09-28 16:39:02 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
Comment 1 Sébastien Wilmet 2016-09-11 15:14:00 UTC
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.
Comment 2 Sébastien Wilmet 2017-01-11 12:28:24 UTC
(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.
Comment 3 Sébastien Wilmet 2017-07-19 17:41:39 UTC
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"
Comment 4 Sébastien Wilmet 2017-12-14 13:03:24 UTC
Remove 4.0 target milestone. This won't happen for 4.0. Error: not enough funding.
Comment 5 Sébastien Wilmet 2018-02-09 11:42:49 UTC
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.
Comment 6 GNOME Infrastructure Team 2021-07-05 11:02:18 UTC
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.