|
|||||||||||
|
Re: [long] An attempt to improve the code of the GTK+ frontend
From: Frans Pop <elendil(at)planet.nl>
Date: Mon Jul 09 2007 - 12:20:14 EDT
Thanks for all the work Jérémy! I'll not comment on the really technical side of the changes, mostly because my grasp of C is not sufficient to have an opinion on them. However, in general the refactoring seems like a good idea to me. > --- 8< --- Hmm. If the changes are so structural, I'm not sure that the effort of creating patches to have a gradual changeover is worth it. I'd suggest just getting the code in your branch into the state we want it and then just merging it into trunk in one commit. > I am open to normalize the code before integrating it. But I would I agree that this would be an improvement. Colin? > 2.3 Code has been split in different files > The longest file have a total of 638 lines (including documentation The stats at the bottom show an increase in lines of code of 1000 lines, or 70%. That seems excessive, but I suspect the true increase is more subtle.
Could you provide sloccounts:
That would give a more realistic basis for comparison. > 2.5 Separation of code specific to the debian-installer > The screenshot module is compiled conditionally as I see no reason Agreed. > 3.5 fe_gtk_set_title() reactivated Note that the TITLE command is deprecated in debconf anyway, although there is at least one location in D-I (lowmem) where it is currently used and, AFAICT, needed. > 4.1 Banner adapts to various screen size I'm not sure that this is a good solution. With the current bannersetting a fixed background color works, but this would not be true for more complex banners as proposed in #414785 or [1], or with banners for derived distributions using a completely different banner (such a Dzongha Linux [2]). Basically, hardcoding a color seems very wrong to me. > 4.2 Main window adapts to various screen size
IMO supporting higher resolutions will require a redesign of the
interface, for the following reasons:
In other words: yes, supporting higher resolutions is a great goal, but
not without making sure that the total presentation is still useable. IMO
we'd need to limit the effective usable area of the screen, for example
by defining a rectangular container within which all other elements are
positioned.
[Next to sections switched]
I don't think it is, mainly because the buttons are now much too far apart. > 4.3 Screenshot button has been removed I don't think F10 is a good button to use for that as it is completely non-intuitive. It would be nice to have the PrtScreen button as an alternative way to activate a screenshot. > Frans suggested on IRC that it could perfectly be an option in a Yes, I do think that having a menu in D-I would be a perfect option. It could contain not only the screenshot button, but for example also the "extra" menu items (CD integrity check, Save debug logs, Change debconf priority, etc.). I am against removing the screenshot button while we do not have an alternative method that is *visible* to the user. However, making the screenshot button "secondary" and moving it to the other side of the screen does seem like a good option to me. > 4.5 Yes/No buttons for boolean questions
Looking at the screenshots, I don't think this is an improvement over
using the radio buttons. Again, the main reason is distance; in this case
distance from the question.
Again, not a bad option, but would require a significant redesign of how dialogs are displayed. > 4.6 glib logs to syslog Seems OK to me, especially since only real "errors" get redirected there, so it does not completely clutter the syslog. Would it be possible to redirect the other messages on VT1 to a file too, possibly/preferably a different logfile? > 5.1 An entropy plugin for the GTK+ frontend That's really excellent! > It worked well during my tests but is not ready to be packaged for Hmm. Does that mean that you also ask the user to enter characters? Wouldn't it be better to gain entropy through random mouse movement (or at least offer that as an alternative)? In that case I doubt there would be much overlap in templates. > Where this leads to complication is in terms of packaging... Build depending on a udeb is not possible. The obvious solution seems to me to include the plugins in the cdebconf source package, probably under a new dir ./modules/plugins. Alternatively, maybe the stuff that you need to depend on could be factored out into a separate small library per frontend? > 5.2 Progress bar and questions?
Worth further investigation IMO, especially as we have plenty of space on
the screen to play with.
Cheers,
-- To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Mon Jul 9 12:20:32 2007 This archive was generated by hypermail 2.1.8 : Mon Jul 16 2007 - 05:13:44 EDT |
||||||||||
|
|||||||||||