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 432684 - Document that gtk_text_view_set_justification does not support GTK_JUSTIFY_FILL justification
Document that gtk_text_view_set_justification does not support GTK_JUSTIFY_FI...
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Documentation
2.10.x
Other All
: Low minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-04-23 17:05 UTC by Bob Murphy
Modified: 2007-05-04 01:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bob Murphy 2007-04-23 17:05:48 UTC
An attempt to set this justification in a GtkTextView results in a "FIXME" g_warning message. This message is emitted in set_para_values() in gtktextlayout.c.

This has been verified in 2.10.11, is also present in GTK+ 2.6.10 and 2.8.20.

Lack of support for this justification value is not documented in the wiki.
Comment 1 Mart Raudsepp 2007-04-24 00:35:24 UTC
The reason is that pango_layout_set_justify() isn't implemented at all yet :(
When that reaches pango, it's just about calling pango_layout_set_justify on the display->layout there.

The documentation for "justification" property of GtkTextTag lists left, right and center justification, leaving fill justification out. The wiki you are referring to (not sure which and which page) is a wiki, probably free for editing ;)

Marking dup against the pango bug as has been done before for a GtkTextView fill justification bug.

*** This bug has been marked as a duplicate of 64538 ***
Comment 2 Bob Murphy 2007-04-24 00:44:18 UTC
Thanks for the information!

Mea culpa - the page I was referring to is not a wiki, it's the online GTK+ 2.0 documentation:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html
under gtk_text_view_set_justification(). It would be helpful to mention the available justification here, since it's not obvious (from that page, at least) that fill justification won't work.
Comment 3 Mart Raudsepp 2007-04-25 18:31:03 UTC
Ah, I see. I think it would indeed be useful to say so then there too. Got a good wording or a patch to that effect? :)

Reopening and retitling
Comment 4 Mart Raudsepp 2007-05-04 01:45:11 UTC
Now instead bug 64538 was fixed and GtkTextView is using a now working pango_layout_set_justify from committed patch from bug 435675 and we don't have much of a reason to add this note to the documentation anymore, seeing as it should work in future gtk+ development releases and the next stable cycle :)
Marking as obsolete