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 675804 - Cleanups in EphyLocationEntry and EphyLocationController
Cleanups in EphyLocationEntry and EphyLocationController
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-10 12:19 UTC by Claudio Saavedra
Modified: 2018-03-30 16:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ephy-location-entry: make parameters actual properties (4.30 KB, patch)
2012-05-10 12:19 UTC, Claudio Saavedra
committed Details | Review
ephy-location-controller: use GBinding to sync properties with the entry (3.38 KB, patch)
2012-05-10 12:19 UTC, Claudio Saavedra
committed Details | Review
ephy-location-controller: use a GBinding to sync the entry address property (7.32 KB, patch)
2012-05-10 12:19 UTC, Claudio Saavedra
none Details | Review
ephy-location-controller: add missing default case in set/get_property methods (1.18 KB, patch)
2012-05-10 12:27 UTC, Claudio Saavedra
committed Details | Review
ephy-location-controller: remove blocking of entry updates when focused (5.74 KB, patch)
2012-06-05 14:10 UTC, Claudio Saavedra
needs-work Details | Review
ephy-location-controller: use gbinding to sync the entry address (2.23 KB, patch)
2012-06-05 14:10 UTC, Claudio Saavedra
reviewed Details | Review

Description Claudio Saavedra 2012-05-10 12:19:19 UTC
Use actual properties and bindings instead of cumbersome sync functions and notify
handlers.
Comment 1 Claudio Saavedra 2012-05-10 12:19:21 UTC
Created attachment 213797 [details] [review]
ephy-location-entry: make parameters actual properties

So that they are bindable.
Comment 2 Claudio Saavedra 2012-05-10 12:19:26 UTC
Created attachment 213798 [details] [review]
ephy-location-controller: use GBinding to sync properties with the entry
Comment 3 Claudio Saavedra 2012-05-10 12:19:29 UTC
Created attachment 213799 [details] [review]
ephy-location-controller: use a GBinding to sync the entry address property

This also wipes the changes related to ef289f55, which are not really
fixing anything as far as I can tell, and cleans up related code.
Comment 4 Claudio Saavedra 2012-05-10 12:27:33 UTC
Created attachment 213800 [details] [review]
ephy-location-controller: add missing default case in set/get_property methods
Comment 5 Xan Lopez 2012-05-24 09:44:44 UTC
Review of attachment 213800 [details] [review]:

git rebase -i is your friend, merge with the first one no?
Comment 6 Xan Lopez 2012-05-24 09:44:56 UTC
Review of attachment 213797 [details] [review]:

Looks good, merge with the last one.
Comment 7 Xan Lopez 2012-05-24 09:45:07 UTC
Review of attachment 213798 [details] [review]:

Awesomesauce.
Comment 8 Xan Lopez 2012-05-24 09:46:24 UTC
Review of attachment 213799 [details] [review]:

If it's possible to delete the code independently from the change please let's do that; otherwise I'll sit down and double-check this later, I'm in a hurry now.
Comment 9 Claudio Saavedra 2012-06-04 13:45:45 UTC
Review of attachment 213800 [details] [review]:

This patch is for ephy-location-controller, the first one is for ephy-location-entry, so they are unrelated. Changing status to 'none' as per comment.
Comment 10 Claudio Saavedra 2012-06-04 18:50:06 UTC
Attachment 213797 [details] pushed as ad00117 - ephy-location-entry: make parameters actual properties
Attachment 213798 [details] pushed as db67dc8 - ephy-location-controller: use GBinding to sync properties with the entry
Attachment 213800 [details] pushed as c4e887a - ephy-location-controller: add missing default case in set/get_property methods

I just pushed the rejected one, since the reason for rejection was confusion with where 
the patch was to be applied and not that it's bad.
Comment 11 Claudio Saavedra 2012-06-05 14:10:53 UTC
Created attachment 215643 [details] [review]
ephy-location-controller: remove blocking of entry updates when focused

This was introduced as a fix for bug 488680. I couldn't reproduce this bug
at all and the code is overly complicated, furthermore, it's stopping me
from using GBinding for the entry address synchronization.
Comment 12 Claudio Saavedra 2012-06-05 14:10:58 UTC
Created attachment 215644 [details] [review]
ephy-location-controller: use gbinding to sync the entry address
Comment 13 Xan Lopez 2012-06-13 10:09:20 UTC
Review of attachment 215643 [details] [review]:

So is it me or this code does not actually do anything? It just seems to carefully control the boolean flag, but it's never actually used for anything. If we agree on this then it seems completely safe to remove it.
Comment 14 Xan Lopez 2012-06-13 10:12:59 UTC
Review of attachment 215644 [details] [review]:

Looks good assuming we commit the previous patch.
Comment 15 Claudio Saavedra 2012-06-13 10:16:21 UTC
(In reply to comment #13)
> Review of attachment 215643 [details] [review]:
> 
> So is it me or this code does not actually do anything? It just seems to
> carefully control the boolean flag, but it's never actually used for anything.
> If we agree on this then it seems completely safe to remove it.

Not really, it actually removes the handler that takes care of synchronizing the address with the entry when the entry is focused, so that this doesn't happen while you're typing a new address, but for the life of me I couldn't reproduce this bug at all...
Comment 16 Xan Lopez 2012-06-13 10:23:27 UTC
(In reply to comment #15)
> Not really, it actually removes the handler that takes care of synchronizing
> the address with the entry when the entry is focused, so that this doesn't
> happen while you're typing a new address, but for the life of me I couldn't
> reproduce this bug at all...

You are right! So I think it would be good to know how exactly the code is preventing this from happening before removing this bit. FWIW my brain tells me this can actually happen in ephy (at least I seem to remember experiencing it), so maybe the answer is "not at all"?
Comment 17 Xan Lopez 2012-07-02 17:15:03 UTC
Ping about this? Did you look into it?
Comment 18 Xan Lopez 2013-01-04 11:33:19 UTC
Second ping.
Comment 19 Xan Lopez 2013-01-08 21:03:21 UTC
Comment on attachment 215643 [details] [review]
ephy-location-controller: remove blocking of entry updates when focused

Marking as 'needs-work' since this needs at least an explanation in the commit, and to drop it from my queue ;)
Comment 20 Michael Catanzaro 2018-03-25 17:50:15 UTC
This is a mass NEEDINFO of all Epiphany bugs with no activity in the past three years. I'm going to be automatically closing old bugs to help us focus on current problems. If you feel this bug is still relevant with Epiphany 3.26 or newer, then please leave any comment here so that I know not to close this one.
Comment 21 Michael Catanzaro 2018-03-30 16:29:03 UTC
This is a mass-close of old bugs currently in the NEEDINFO state.

If you think this bug is still relevant, please leave a comment.