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 690774 - Various improvements
Various improvements
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-27 14:48 UTC by Sébastien Wilmet
Modified: 2012-12-28 21:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GTK-Doc: gdk-pixbuf was missing in FIXXREF_OPTIONS (2.12 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Use G_GNUC_INTERNAL to avoid exporting private symbols (28.62 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Use the GtkSourceView type instead of "struct _GtkSourceView" (2.73 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Protect completionwordsutils.h from several inclusions (1.14 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Include the completion providers in gtksource.h (1.56 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
none Details | Review
tests: clean header inclusions (2.21 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Remove unused symbols (5.70 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Document completion error symbols (2.82 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
Move some private types in gtksourcetypes-private.h (11.51 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
accepted-commit_now Details | Review
GTK-Doc: add missing symbols (2.67 KB, patch)
2012-12-27 14:48 UTC, Sébastien Wilmet
none Details | Review

Description Sébastien Wilmet 2012-12-27 14:48:20 UTC
Another set of patches with various improvements.
Comment 1 Sébastien Wilmet 2012-12-27 14:48:23 UTC
Created attachment 232271 [details] [review]
GTK-Doc: gdk-pixbuf was missing in FIXXREF_OPTIONS
Comment 2 Sébastien Wilmet 2012-12-27 14:48:27 UTC
Created attachment 232272 [details] [review]
Use G_GNUC_INTERNAL to avoid exporting private symbols

With the relinfo.pl script from Ulrich Drepper, here are the results.

Before:
128 relocations, 105 relative (82%), 946 PLT entries, 247 for local syms (26%)

After:
125 relocations, 103 relative (82%), 880 PLT entries, 181 for local syms (20%)

Private symbols prefixed with an underscore (or without the gtk_source_
prefix) were not exported. However G_GNUC_INTERNAL is beneficial for
them too because the compiler is now aware that those symbols are not
exported, and therefore it can better optimize the code.

Another problem remains: the big number of PLT entries for local
symbols. Normally it should be 0 I think (it is 0 for the glib, gio and
gtk+, for example, so it should be possible for GSV too).
Comment 3 Sébastien Wilmet 2012-12-27 14:48:31 UTC
Created attachment 232273 [details] [review]
Use the GtkSourceView type instead of "struct _GtkSourceView"
Comment 4 Sébastien Wilmet 2012-12-27 14:48:34 UTC
Created attachment 232274 [details] [review]
Protect completionwordsutils.h from several inclusions
Comment 5 Sébastien Wilmet 2012-12-27 14:48:38 UTC
Created attachment 232275 [details] [review]
Include the completion providers in gtksource.h
Comment 6 Sébastien Wilmet 2012-12-27 14:48:41 UTC
Created attachment 232276 [details] [review]
tests: clean header inclusions
Comment 7 Sébastien Wilmet 2012-12-27 14:48:44 UTC
Created attachment 232277 [details] [review]
Remove unused symbols

The symbols were present in docs/reference/gtksourceview-3.0-unused.txt,
but they are used nowhere, so it's simpler to remove them.
Comment 8 Sébastien Wilmet 2012-12-27 14:48:48 UTC
Created attachment 232278 [details] [review]
Document completion error symbols

GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND is used only in
gtk_source_completion_add_provider().

GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND is used only in
gtk_source_completion_remove_provider().
Comment 9 Sébastien Wilmet 2012-12-27 14:48:51 UTC
Created attachment 232279 [details] [review]
Move some private types in gtksourcetypes-private.h

Some private types were present in gtksourcetypes.h.
Another solution would have been to move these types in their respective
headers, but we lose the benefit of having one header with all the
types (to avoid header inclusions cycles).

The lists of headers in the Makefile.am files have been sorted, and
gtksourcetypes-private.h has been added.
Comment 10 Sébastien Wilmet 2012-12-27 14:48:55 UTC
Created attachment 232280 [details] [review]
GTK-Doc: add missing symbols

Now the gtksourceview-3.0-unused.txt file is empty.
Comment 11 Paolo Borelli 2012-12-28 20:12:09 UTC
Review of attachment 232271 [details] [review]:

thanks!
Comment 12 Paolo Borelli 2012-12-28 20:14:06 UTC
Review of attachment 232272 [details] [review]:

A bit unfortunate that we have to annotate everything, but oh well, as far as I can see gtk did the same
Comment 13 Paolo Borelli 2012-12-28 20:14:38 UTC
Review of attachment 232273 [details] [review]:

definitely good
Comment 14 Paolo Borelli 2012-12-28 20:15:07 UTC
Review of attachment 232274 [details] [review]:

Ouch. Good catch!
Comment 15 Paolo Borelli 2012-12-28 20:15:55 UTC
Review of attachment 232275 [details] [review]:

I am not convinced about this one... what's the gain?
Comment 16 Paolo Borelli 2012-12-28 20:17:20 UTC
Review of attachment 232276 [details] [review]:

Go for it (but you will need to readd the completionwords header, unless you convince me that there it should go in gtksource.h)
Comment 17 Paolo Borelli 2012-12-28 20:18:01 UTC
Review of attachment 232276 [details] [review]:

I forgot to mark it...
Comment 18 Paolo Borelli 2012-12-28 20:18:47 UTC
Review of attachment 232277 [details] [review]:

Definitely good
Comment 19 Paolo Borelli 2012-12-28 20:19:34 UTC
Review of attachment 232278 [details] [review]:

great
Comment 20 Paolo Borelli 2012-12-28 20:20:39 UTC
Review of attachment 232279 [details] [review]:

perfect
Comment 21 Paolo Borelli 2012-12-28 20:27:11 UTC
Review of attachment 232271 [details] [review]:

thanks!
Comment 22 Paolo Borelli 2012-12-28 20:29:05 UTC
It looks like bugzilla is refusing to publish comments on the other patches... anyway to sum it up: they all look good except the one putting wordscompletion in gtksource.h which I am not really convinced about
Comment 23 Sébastien Wilmet 2012-12-28 21:02:06 UTC
OK, thanks for the review. I've pushed the good commits.