GNOME Bugzilla – Bug 432684
Document that gtk_text_view_set_justification does not support GTK_JUSTIFY_FILL justification
Last modified: 2007-05-04 01:45:11 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.
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 ***
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.
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
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