Bug 326207

Summary: yast-gtk: HTML poor rendering
Product: [openSUSE] openSUSE 10.3 Reporter: Francis Giannaros <francis>
Component: YaST2Assignee: Michael Meeks <michael.meeks>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_h13THG8RK1, jdsn
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: large line height

Description Francis Giannaros 2007-09-18 23:25:24 UTC
Created attachment 173198 [details]
large line height

I understand the "spaced-out" look and feel, but I think it goes a little over-the-top, and makes any type of list in a 1-click install not really possible. i.e. see http://opensuse-community.org/codecs-gnome.ymp or see attached screenshot.
Comment 1 Benjamin Weber 2007-09-18 23:29:55 UTC
This is a rich text widget. Spacing is slightly different to the Qt version. Rich text is used in proposals etc all over YaST, not just here.
Comment 2 Forgotten User h13THG8RK1 2007-11-18 01:40:28 UTC
And to make it clear, this *is* a bug.

The problem here is that there is no good HTML widget for GTK+.
* The Gecko based one is bloated.
* GtkHtml (based on KHTML of yore) lacks proper search support which we use on the Help dialogs (I guess we could hack it somewhat like Evolution does). And since its basically only used by Evolution nowadays, some parts of it can be unstable at times, as they go untested -- had to cut support for it on a program I maintain.
* GtkHtml2 (a fork of GtkHtml). It seems like its no longer maintained.

And they all bring a lot of dependencies with them (and we are aiming for Xfce and other desktops here ;))

The problem with our custom HTML TextView is that we don't support tables. I have seen one tool, on -ux mailing list, that uses them. Anyway, I guess we should review our widget to fix these stuff, and worry about it when the time comes. As it is, we don't use our HTML widget directly, but we have a function set that wraps them, so we could hook support for another trivially. A HTML widget is pretty important nowadays, so I expect some proper one to come up (maybe based on KDE/Apple's WebKit).
Comment 3 Forgotten User h13THG8RK1 2007-11-22 06:19:17 UTC
I have done some general review, and things should be much better now. Reporter, if you'd like to get SVN and check some of Yast tools HTML, that would be a great help...
svn checkout http://svn.opensuse.org/svn/yast/trunk/gtk/

Very easy to compile (check README), and the install just involves copying a file. To get the source code of all RichText widgets, press Ctrl+Alt+Shift+H. Under tests/, there is RichText1.ycp where you can more extensible test the renderer. You can execute by doing: /usr/lib/YaST2/bin/y2base tests/RichText1.ycp gtk

Thanks!