GNOME Bugzilla – Bug 606162
Unnecessarily word wrapped description
Last modified: 2010-01-14 10:11:56 UTC
plugins/plot_pie/plot-types.xml.in: _description="Percentage of each contributor displayed in ring for each serie." plugins/plot_pie/plot-types.xml.in: _description="Percentage of each contributor displayed in ring for each serie with wedges of the last ring split apart." I think "serie" should be "series". The former word does not exist. Note also that many of these descriptors are unnecessarily split into two lines in Gnumeric's chart selector description filed. I don't know where that is caused.
I agree that it's a typo. Fell free to fix that. I don't understand what is split?
Created attachment 150896 [details] screenshot of the bottom of the graph guru In the screen shot you see that the descriptive text does not fill the width of thebox but miraculously is split early.
typo is fixed.
The split comes from GTK+. I'll try to find a way to force GTK+ to adopt a more senseful behavior (not sure it's possible).
I am not sure where the dialog is created, but I suspect that the textview in place does not have horizontal fill&expand set.
It's a GtkLabel inside a GtkFrame, there is no fill/expand property there. Quoting Gtk+ docs: Note that setting line wrapping to TRUE does not make the label wrap at its parent container's width, because GTK+ widgets conceptually can't make their requisition depend on the parent container's size. For a label that wraps at a specific position, set the label's width using gtk_widget_set_size_request().
Jean, where are you creating this GtkLabel? I do dialogs.
graph_guru_type_selector_new using GtkBuilder
Created attachment 150999 [details] [review] change the text alignment We have a better alignment with this patch, but if the dialog is widened, the text layout does not change. Clearly GtkLabel has problems with multiline text.
Jean, what would you think of making the text of the description a tool tip to the list item. I think the text is useful only for beginning users anyways, so it may be ideal for a tooltip. This would also give much more space in the dialog to show the preview permanently (bug #495781).
Considering that there is gtk_tree_view_set_tooltip_column (), implementing the tooltips for the treeeview should be quite easy.
I just realized that the text changed for the subtypes. So we might need anotehr tooltip explaining the subtypes.
Created attachment 151260 [details] [review] implement tooltips for subtypes If we go this way, GogGuru needs some surgery.
Comment on attachment 151260 [details] [review] implement tooltips for subtypes Now, I need to change the UI to remove the label.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.