[epiphany/wip/dazzle: 9/10] location-entry: Rename _activate -> _focus



commit 08062b7d95c44f8c90a879d5b0f93b6643e67c50
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Aug 28 13:51:20 2017 -0500

    location-entry: Rename _activate -> _focus

 lib/widgets/ephy-location-entry.c |    6 +++---
 lib/widgets/ephy-location-entry.h |    2 +-
 src/ephy-window.c                 |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index d9987c7..3e15b0d 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -496,7 +496,7 @@ entry_key_press_cb (GtkEntry          *entry,
     /* Make sure the location is activated on CTRL+l even when the
      * completion popup is shown and have an active keyboard grab.
      */
-    ephy_location_entry_activate (location_entry);
+    ephy_location_entry_focus (location_entry);
   }
 
   /* FIXME: Why do we have to activate the location entry manually? */
@@ -905,7 +905,7 @@ ephy_location_entry_reset (EphyLocationEntry *entry)
 }
 
 /**
- * ephy_location_entry_activate:
+ * ephy_location_entry_focus:
  * @entry: an #EphyLocationEntry widget
  *
  * Set focus on @entry and select the text whithin. This is called when the
@@ -913,7 +913,7 @@ ephy_location_entry_reset (EphyLocationEntry *entry)
  *
  **/
 void
-ephy_location_entry_activate (EphyLocationEntry *entry)
+ephy_location_entry_focus (EphyLocationEntry *entry)
 {
   GtkWidget *toplevel, *widget = GTK_WIDGET (entry);
 
diff --git a/lib/widgets/ephy-location-entry.h b/lib/widgets/ephy-location-entry.h
index a826f75..950d061 100644
--- a/lib/widgets/ephy-location-entry.h
+++ b/lib/widgets/ephy-location-entry.h
@@ -52,7 +52,7 @@ gboolean        ephy_location_entry_reset                      (EphyLocationEntr
 
 void            ephy_location_entry_undo_reset                 (EphyLocationEntry *entry);
 
-void            ephy_location_entry_activate                   (EphyLocationEntry *entry);
+void            ephy_location_entry_focus                      (EphyLocationEntry *entry);
 
 void            ephy_location_entry_set_bookmark_icon_state    (EphyLocationEntry                  *entry,
                                                                 EphyLocationEntryBookmarkIconState  state);
diff --git a/src/ephy-window.c b/src/ephy-window.c
index ef794ad..749aad3 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3249,7 +3249,7 @@ ephy_window_activate_location (EphyWindow *window)
   title_widget = ephy_header_bar_get_title_widget (EPHY_HEADER_BAR (window->header_bar));
 
   if (EPHY_IS_LOCATION_ENTRY (title_widget))
-    ephy_location_entry_activate (EPHY_LOCATION_ENTRY (title_widget));
+    ephy_location_entry_focus (EPHY_LOCATION_ENTRY (title_widget));
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]