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 672927 - "awesomebar" entries need some better whitespace
"awesomebar" entries need some better whitespace
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: [obsolete] URL bar
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 669920 (view as bug list)
Depends on: 668135 672947
Blocks:
 
 
Reported: 2012-03-27 15:04 UTC by Hylke Bons
Modified: 2012-05-16 15:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
improved paddings (136.33 KB, image/png)
2012-03-27 15:04 UTC, Hylke Bons
  Details
e-location-entry: adjust padding for completion (1.26 KB, patch)
2012-03-27 22:17 UTC, Diego Escalante Urrelo (not reading bugmail)
reviewed Details | Review
e-location-entry: make bookmark icon follow-state (951 bytes, patch)
2012-03-27 22:17 UTC, Diego Escalante Urrelo (not reading bugmail)
accepted-commit_now Details | Review
e-location-entry: redundant ellipsize-set (890 bytes, patch)
2012-03-27 22:18 UTC, Diego Escalante Urrelo (not reading bugmail)
accepted-commit_now Details | Review
WIP. With the proposed patches applied. (45.46 KB, image/png)
2012-03-27 22:28 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
e-location-entry: dim URL in completion rows (1.12 KB, patch)
2012-03-27 23:19 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
e-location-entry: make bookmark icon follow-state (1.03 KB, patch)
2012-03-28 03:42 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review
e-location-entry: redundant ellipsize-set (1.04 KB, patch)
2012-03-28 03:42 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review
e-location-entry: dim URL in completion rows (1.12 KB, patch)
2012-03-28 03:42 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review
e-location-entry: make aligment pixel-perfect (3.09 KB, patch)
2012-03-28 03:42 UTC, Diego Escalante Urrelo (not reading bugmail)
accepted-commit_now Details | Review
All patches applied (51.78 KB, image/png)
2012-03-28 03:46 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
e-location-entry: make aligment pixel-perfect (3.62 KB, patch)
2012-03-30 19:51 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Hylke Bons 2012-03-27 15:04:25 UTC
Created attachment 210705 [details]
improved paddings

It's a bit crammed right now. Attached a mockup which addresses the paddings between icons and edges and icons and text.
Comment 1 Jakub Steiner 2012-03-27 15:17:50 UTC
I agree we need more whitespace around the icons.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 21:34:18 UTC
Depends on bug #668135 for the location GtkEntry aligment.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 22:17:56 UTC
Created attachment 210737 [details] [review]
e-location-entry: adjust padding for completion
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 22:17:58 UTC
Created attachment 210738 [details] [review]
e-location-entry: make bookmark icon follow-state
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 22:18:01 UTC
Created attachment 210739 [details] [review]
e-location-entry: redundant ellipsize-set
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 22:28:48 UTC
Created attachment 210740 [details]
WIP. With the proposed patches applied.
Comment 7 Hylke Bons 2012-03-27 22:32:24 UTC
Looks good to go to me. Thanks for fixing so quickly! :)
Comment 8 Xan Lopez 2012-03-27 22:43:09 UTC
Review of attachment 210738 [details] [review]:

Please explain what's the visible outcome of this in the commit message.
Comment 9 Xan Lopez 2012-03-27 22:43:15 UTC
Review of attachment 210739 [details] [review]:

OK.
Comment 10 Xan Lopez 2012-03-27 22:44:06 UTC
Review of attachment 210737 [details] [review]:

I don't want to be an ass, but based on the screenshot you posted, shouldn't the completion text align with the text in the entry? I think there's too much padding now.
Comment 11 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 23:19:21 UTC
Created attachment 210742 [details] [review]
e-location-entry: dim URL in completion rows
Comment 12 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:42:21 UTC
Created attachment 210749 [details] [review]
e-location-entry: make bookmark icon follow-state

Makes the symbolic-icon of the completion rows change its color
accordingly to the selection state. With Adwaita: black -> white.
Comment 13 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:42:34 UTC
Created attachment 210750 [details] [review]
e-location-entry: redundant ellipsize-set
Comment 14 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:42:42 UTC
Created attachment 210751 [details] [review]
e-location-entry: dim URL in completion rows
Comment 15 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:42:59 UTC
Created attachment 210752 [details] [review]
e-location-entry: make aligment pixel-perfect

Align the elements of the GtkEntryCompletion popup with those in the
location entry. The code comes with a detailed comment and a scheme of
how the aligment is done now.

Because of the unhandled pixels of GtkEntryCompletion, this code might
need an update if anything in GTK+ or Adwaita changes.
Comment 16 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:43:49 UTC
Updated patches. Also adding depend on Cosimo's fixes for the completion popup in bug #672947.
Comment 17 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 03:46:34 UTC
Created attachment 210753 [details]
All patches applied

Apparently my new goal in life is making Hylke happy. 

Here's the screenshot of the completion with the patches applied.

When Cosimo's patches for the completion in bug #672947 are applied, the bookmark icon will align perfectly with the lock icon.
And if we ever fix bug #668135, the entry will align perfectly with the stop button.

I think this is already perfect-enough. Testing on other fonts, and resolutions, and stuff, is welcome.

Reviewing is also welcome :)
Comment 18 Xan Lopez 2012-03-30 11:33:01 UTC
Review of attachment 210750 [details] [review]:

I think I already reviewed this?
Comment 19 Xan Lopez 2012-03-30 11:33:28 UTC
Review of attachment 210749 [details] [review]:

OK.
Comment 20 Xan Lopez 2012-03-30 11:35:46 UTC
Review of attachment 210751 [details] [review]:

OK.
Comment 21 Xan Lopez 2012-03-30 11:39:44 UTC
Review of attachment 210752 [details] [review]:

OK.

::: lib/widgets/ephy-location-entry.c
@@ +1059,3 @@
+	 */
+	gtk_cell_renderer_set_padding (cell, 5, 2);
+	gtk_cell_renderer_set_fixed_size (cell, 23, 4);

Is it possible to get the numbers as a+b+c so that it is crystal clear what are we doing here? The comment is awesome, but that would make the code easier to read too.
Comment 22 Diego Escalante Urrelo (not reading bugmail) 2012-03-30 19:51:52 UTC
Created attachment 210994 [details] [review]
e-location-entry: make aligment pixel-perfect

Align the elements of the GtkEntryCompletion popup with those in the
location entry. The code comes with a detailed comment and a scheme of
how the aligment is done now.

Because of the unhandled pixels of GtkEntryCompletion, this code might
need an update if anything in GTK+ or Adwaita changes.
Comment 23 Xan Lopez 2012-03-30 19:53:54 UTC
Review of attachment 210994 [details] [review]:

Great, much better.
Comment 24 Diego Escalante Urrelo (not reading bugmail) 2012-03-30 20:00:09 UTC
Attachment 210749 [details] pushed as dda0c52 - e-location-entry: make bookmark icon follow-state
Attachment 210750 [details] pushed as 638b468 - e-location-entry: redundant ellipsize-set
Attachment 210751 [details] pushed as 0b9943b - e-location-entry: dim URL in completion rows
Attachment 210994 [details] pushed as 5f99eda - e-location-entry: make aligment pixel-perfect
Comment 25 Evandro Giovanini 2012-05-16 15:32:19 UTC
*** Bug 669920 has been marked as a duplicate of this bug. ***