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 503400 - Excessive whitespace on password dialogs
Excessive whitespace on password dialogs
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.12.x (obsolete)
Other Linux
: Normal trivial
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks: 506250
 
 
Reported: 2007-12-13 12:01 UTC by Ted Percival
Modified: 2008-01-18 03:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Screenshot of existing password dialog (18.27 KB, image/png)
2007-12-13 12:02 UTC, Ted Percival
  Details
Patch (revised) (1.80 KB, patch)
2007-12-13 12:19 UTC, Ted Percival
committed Details | Review
Screenshot of patched password dialog (17.73 KB, image/png)
2007-12-13 12:21 UTC, Ted Percival
  Details
Patch with aligned elements (3.12 KB, patch)
2007-12-28 20:28 UTC, Ted Percival
none Details | Review
Screenshot with aligned elements (17.74 KB, image/png)
2007-12-28 20:30 UTC, Ted Percival
  Details
Patch with aligned elements (corrected code style) (3.19 KB, patch)
2008-01-02 06:54 UTC, Ted Percival
none Details | Review
Revised patch (6.19 KB, patch)
2008-01-11 19:42 UTC, Matthew Barnes
committed Details | Review
Another Screenshot (17.03 KB, image/png)
2008-01-11 19:43 UTC, Matthew Barnes
  Details

Description Ted Percival 2007-12-13 12:01:14 UTC
I find there is a lot of unnecessary whitespace on the password dialogs, particularly among the elements vertically.

Transferred from the evolution-patches mailing list: http://mail.gnome.org/archives/evolution-patches/2007-December/msg00000.html
Comment 1 Ted Percival 2007-12-13 12:02:33 UTC
Created attachment 100880 [details]
Screenshot of existing password dialog
Comment 2 Ted Percival 2007-12-13 12:19:46 UTC
Created attachment 100881 [details] [review]
Patch (revised)

This is the patch that was submitted to evolution-patches, but with the GtkVBox spacing set to 6 instead of 5 as suggested by Matthew Barnes. This results in at least 12 pixels between any two elements as suggested by Gnome Human Interface Guidelines[1]. The closest is the distance between the input box and the checkbox - at exactly 12 pixels (not including the feint highlight line adjacent to the dark border) - based on my screenshot using using the Clearlooks theme.

[1] Gnome Human Interface Guidelines: http://library.gnome.org/devel/hig-book/stable/design-window.html.en
Comment 3 Ted Percival 2007-12-13 12:21:02 UTC
Created attachment 100882 [details]
Screenshot of patched password dialog
Comment 4 Matthew Barnes 2007-12-13 13:11:02 UTC
I like it.  Approving the patch.

If you want to take on some additional work, I think the dialog would look even better if the entry box and check box were left-aligned with the "Please enter password" label instead of the icon.

You can use a 2-column GtkTable for this.  Make the first column exclusively for the icon -- use "top" vertical alignment and have the column span however many rows there are in the second column.  Like this:

   +------+-----------------------------+  }
   |  /\  | Please enter password.      |  }  GtkTable, packed inside
   | /__\ +-----------------------------+  }  the dialog's GtkVBox.
   |      | [Entry box                ] |  }
   |      +-----------------------------+  }
   |      | [ ] Remember this password  |  }
   +------+-----------------------------+
   |                 [Cancel]  [  OK  ] |
   +------------------------------------+

Again, this is totally optional.  I think your patch can go in as is.
Comment 5 Gilles Dartiguelongue 2007-12-13 13:57:06 UTC
I agree with the extra request of matthew, would be cool if it was handled (eventually in another report) because it currently feels weird with the rest of the desktop.
Comment 6 Jeffrey Stedfast 2007-12-13 18:10:45 UTC
fwiw, I also agree with Matthew.
Comment 7 Ted Percival 2007-12-19 02:19:10 UTC
I'll try implementing that suggestion, I agree it will probably look nicer. Just a  note to say I haven't forgotten this, I'm just busy. If there's no more progress in a month feel free to ping me :)
Comment 8 Suman Manjunath 2007-12-23 09:22:21 UTC
Patch committed to SVN trunk as r8313
(http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=8313)
Comment 9 Ted Percival 2007-12-28 20:28:46 UTC
Created attachment 101763 [details] [review]
Patch with aligned elements

This implements the suggestion by Matthew Barnes to left-align the input elements with the prompt text, to the right of the icon.

I ended up using a GtkVBox in a GtkHBox rather than a GtkTable because it was more flexible at handling the optional "Remember this password" field.
Comment 10 Ted Percival 2007-12-28 20:30:36 UTC
Created attachment 101764 [details]
Screenshot with aligned elements
Comment 11 Ted Percival 2008-01-02 06:54:40 UTC
Created attachment 101974 [details] [review]
Patch with aligned elements (corrected code style)

This is the same as attachment 101763 [details] [review] except with correct whitespacing around GTK_* casts.
Comment 12 Ted Percival 2008-01-02 08:16:15 UTC
The gtkmessagedialog.h include is no longer needed in libedataserverui/e-passwords.c, although one or two other headers (gtklabel, gtkdialog) will probably need to replace it.
Comment 13 Matthew Barnes 2008-01-11 19:42:20 UTC
Created attachment 102615 [details] [review]
Revised patch

I took Ted's patch and iterated on it a little more, fixing a few alignment issues, getting rid of the separator, and having the GtkLabel treat the text as markup in preparation for bug #506250.
Comment 14 Matthew Barnes 2008-01-11 19:43:23 UTC
Created attachment 102616 [details]
Another Screenshot
Comment 15 Srinivasa Ragavan 2008-01-11 21:00:52 UTC
Matt, didn't fejj say whey they didn't have user@host, rather reverted after lots of complaints? Still we going in that fashion? Or Am I reading wrong somewhere?
Comment 16 Matthew Barnes 2008-01-11 23:53:26 UTC
See bug #506250, which deals with the wording.  This bug is just UI stuff.
Comment 17 Srinivasa Ragavan 2008-01-12 06:27:38 UTC
Matt then ok. Commit it asap. Also lets close bug 506250 asap. I want it to look great :)
Comment 18 Suman Manjunath 2008-01-14 06:36:13 UTC
Patch committed to SVN trunk as r8361 (had to commit before the release :-) )
(http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=8361)
Comment 19 Matthew Barnes 2008-01-18 03:17:16 UTC
Closing this since the patch was committed.