GNOME Bugzilla – Bug 668206
Cleanup LocationEntry vs. LocationAction
Last modified: 2012-01-19 18:08:04 UTC
It's useful for EphyLocationEntry to be just a GtkEntry, and for EphyLocationAction not to be a GtkAction these days. This also simplifies the rest of the code.
Created attachment 205570 [details] [review] entry: make EphyLocationEntry a GtkEntry Instead of a GtkToolItem. A future commit will merge the location action with the location entry.
Created attachment 205571 [details] [review] location-action: don't make this a GtkAction anymore It doesn't really make sense in a world where the location action is only used on a fixed toolbar, and complicates the code a lot.
Created attachment 205572 [details] [review] Rename EphyLocationAction -> EphyLocationController Since it's not a GtkAction anymore.
(In reply to comment #1) > Instead of a GtkToolItem. A future commit will merge the location action > with the location entry. This commit message is actually wrong; I went for the Entry <-> Controller pattern instead.
Review of attachment 205570 [details] [review]: All seems sensible in this one, but please remember to fix the commit message.
Review of attachment 205571 [details] [review]: OK. I think the code is not particularly easier, and this makes the location action the odd man out now, but I agree moving off GtkAction makes sense here.
Review of attachment 205572 [details] [review]: OK.
Attachment 205570 [details] pushed as 90e79ff - entry: make EphyLocationEntry a GtkEntry Attachment 205571 [details] pushed as 2082e3a - location-action: don't make this a GtkAction anymore Attachment 205572 [details] pushed as e622751 - Rename EphyLocationAction -> EphyLocationController Thanks, pushed these to master now.