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 669129 - blank page drag icon is odd
blank page drag icon is odd
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
polish
Depends on:
Blocks:
 
 
Reported: 2012-01-31 19:09 UTC by William Jon McCann
Modified: 2013-12-12 21:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (10.08 KB, image/png)
2012-01-31 19:09 UTC, William Jon McCann
  Details
ephy-location-entry: no need to set icons activatable (1.20 KB, patch)
2012-02-03 07:46 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review
ephy-location-entry: disable icon drag for blank pages (2.70 KB, patch)
2012-02-03 07:49 UTC, Diego Escalante Urrelo (not reading bugmail)
needs-work Details | Review
ephy-location-entry: disable icon drag for blank pages (2.74 KB, patch)
2013-12-11 16:03 UTC, William Jon McCann
committed Details | Review

Description William Jon McCann 2012-01-31 19:09:43 UTC
Created attachment 206543 [details]
screenshot

There are a few weird things about the blank page drag icon.

 * Odd that it is draggable at all
 * When I drop it on the URL location bar I get a weird result - about:blank and some unicode thingy
 * Weird that it has a tooltip when dragging it
 * the page suggestions after the drag are odd too
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2012-02-03 07:46:31 UTC
Created attachment 206674 [details] [review]
ephy-location-entry: no need to set icons activatable

Icons are activatable by default in GtkEntry. No need to reiterate that.

=

Found this while poking the widget for solutions.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2012-02-03 07:49:48 UTC
Created attachment 206675 [details] [review]
ephy-location-entry: disable icon drag for blank pages

If the address being set by ephy_location_entry_set_location is NULL or
about:blank, the entry will disable dragging for the
GTK_ENTRY_ICON_PRIMARY icon.

It is enabled by default on widget construction.

=

I'm a bit unsure if this is the best way, or if I should rather create a get/set for a ::drag-enabled property or something.
If I added a property, I would use it in ephy-window.c to sync it with the ::is-blank property of EphyWebView.

OTOH, ephy-location-entry.c already handles some about:blank special casing, although it is a more understandable case.

What do you think?
Comment 3 Xan Lopez 2012-02-07 10:22:14 UTC
Review of attachment 206674 [details] [review]:

*Actually*. I think it's odd we mark the security lock as activatable right now, since it does nothing. So disable it for the secondary icon?
Comment 4 Xan Lopez 2012-02-07 10:38:01 UTC
Review of attachment 206675 [details] [review]:

The new designs seem to lean towards dropping the favicon in almost all cases (https://github.com/gnome-design-team/gnome-mockups/blob/master/web/url-entry.png). Perhaps we should just do that instead of spinning our wheels here.
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2012-02-08 06:53:03 UTC
(In reply to comment #4)
> Review of attachment 206675 [details] [review]:
> 
> The new designs seem to lean towards dropping the favicon in almost all cases
> (https://github.com/gnome-design-team/gnome-mockups/blob/master/web/url-entry.png).
> Perhaps we should just do that instead of spinning our wheels here.

Uhm. Ok. Does not look bad. I would say we hold this patch until there's a final design for the location entry then.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2012-02-08 06:56:44 UTC
(In reply to comment #3)
> Review of attachment 206674 [details] [review]:
> 
> *Actually*. I think it's odd we mark the security lock as activatable right
> now, since it does nothing. So disable it for the secondary icon?

It would make the @lock-clicked signal useless.
Comment 7 Xan Lopez 2012-02-24 12:40:08 UTC
(In reply to comment #6)
> > *Actually*. I think it's odd we mark the security lock as activatable right
> > now, since it does nothing. So disable it for the secondary icon?
> 
> It would make the @lock-clicked signal useless.

Well, it's already useless, because it's not used. I think it's wrong to allow the icon to be clicked if nothing is going to happen.
Comment 8 William Jon McCann 2013-12-11 15:55:29 UTC
Comment on attachment 206675 [details] [review]
ephy-location-entry: disable icon drag for blank pages

No longer applies cleanly to master.
Comment 9 William Jon McCann 2013-12-11 16:03:24 UTC
Created attachment 263993 [details] [review]
ephy-location-entry: disable icon drag for blank pages

If the address being set by ephy_location_entry_set_location is NULL or
about:blank, the entry will disable dragging for the
GTK_ENTRY_ICON_PRIMARY icon.

It is enabled by default on widget construction.
Comment 10 Claudio Saavedra 2013-12-11 16:12:45 UTC
Review of attachment 263993 [details] [review]:

Looks good.
Comment 11 William Jon McCann 2013-12-12 21:26:06 UTC
Attachment 206674 [details] pushed as ad221ab - ephy-location-entry: no need to set icons activatable
Attachment 263993 [details] pushed as e450a23 - ephy-location-entry: disable icon drag for blank pages