[epiphany] Make the location entry non-editable for popups



commit 8430003499d61122c44ebba0dc6d4544d03a884b
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Wed Jan 29 15:24:15 2014 +0100

    Make the location entry non-editable for popups

 src/ephy-window.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d117225..c174c0f 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1977,6 +1977,11 @@ ephy_window_configure_for_view (EphyWindow *window,
 
        if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) != EPHY_EMBED_SHELL_MODE_APPLICATION)
        {
+               GtkWidget *entry;
+
+               entry = ephy_toolbar_get_location_entry (EPHY_TOOLBAR (window->priv->toolbar));
+               gtk_editable_set_editable (GTK_EDITABLE (entry), FALSE);
+
                if (webkit_window_properties_get_menubar_visible (properties))
                        chrome |= EPHY_WINDOW_CHROME_MENU;
                if (webkit_window_properties_get_locationbar_visible (properties))


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