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 747206 - gtktextview: note on how to get line spacing between two paragraphs
gtktextview: note on how to get line spacing between two paragraphs
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
3.15.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-01 20:59 UTC by Bastian Ilsø
Modified: 2016-05-24 03:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtktextview: document how to get line space (1.40 KB, patch)
2015-04-01 20:59 UTC, Bastian Ilsø
none Details | Review
gtktextview: document how to get line space (1.42 KB, patch)
2015-04-02 11:32 UTC, Bastian Ilsø
committed Details | Review

Description Bastian Ilsø 2015-04-01 20:59:11 UTC
Created attachment 300778 [details] [review]
gtktextview: document how to get line space

this patch adds two paragraphs for gtk_text_view_get_pixels_below_lines() and gtk_text_view_get_pixels_above_lines(). A small convenience for anyone who might be looking around in developer.gnome.org, searching how to get the line spacing value in a GtkTextView.
Comment 1 Matthias Clasen 2015-04-01 23:15:51 UTC
Review of attachment 300778 [details] [review]:

I think the wording is a bit awkward. Maybe something like

"The space between two paragraphs is the sum of the value return by this function with the value return by <other function>."
Comment 2 Bastian Ilsø 2015-04-02 11:32:50 UTC
Created attachment 300810 [details] [review]
gtktextview: document how to get line space

I took your proposal and modified it slightly. If possible I'd like the docs to explicitly state "line space" (unless that's not true of course).

btw, does gtk_text_view_get_pixels_below_lines() return the default number of blank pixels below "paragraphs" or below "lines"?
Comment 3 Matthias Clasen 2016-05-24 03:02:58 UTC
Attachment 300810 [details] pushed as 5759e2a - gtktextview: document how to get line space