diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c index 3c4366b..7a8ba76 100644 --- a/src/ephy-title-box.c +++ b/src/ephy-title-box.c @@ -239,13 +239,8 @@ ephy_title_box_constructed (GObject *object) chrome = ephy_window_get_chrome (priv->window); priv->location_disabled = !(chrome & EPHY_WINDOW_CHROME_LOCATION); - if (priv->location_disabled) { - priv->mode = EPHY_TITLE_BOX_MODE_TITLE; - gtk_stack_set_visible_child_name (GTK_STACK (title_box), "title-bar"); - } else { - priv->mode = EPHY_TITLE_BOX_MODE_LOCATION_ENTRY; - gtk_stack_set_visible_child_name (GTK_STACK (title_box), "address-bar"); - } + priv->mode = EPHY_TITLE_BOX_MODE_LOCATION_ENTRY; // always use entry mode + gtk_stack_set_visible_child_name (GTK_STACK (title_box), "address-bar"); g_signal_connect_swapped (priv->window, "notify::chrome", G_CALLBACK (sync_chromes_visibility), @@ -600,16 +595,7 @@ ephy_title_box_set_mode (EphyTitleBox *title_box, ephy_title_box_cancel_switch_to_entry_after_double_click_time (title_box); - if (!priv->location_disabled) { - const gchar *uri; - - uri = priv->web_view ? webkit_web_view_get_uri (priv->web_view) : NULL; - if (!uri || g_str_has_prefix (uri, "about:") || - g_str_has_prefix (uri, "ephy-about:")) { - mode = EPHY_TITLE_BOX_MODE_LOCATION_ENTRY; - } - } else - mode = EPHY_TITLE_BOX_MODE_TITLE; + mode = EPHY_TITLE_BOX_MODE_LOCATION_ENTRY; // always use entry mode if (priv->mode == mode) return;