[epiphany] Fix using wrong entry of title widget
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix using wrong entry of title widget
- Date: Mon, 22 Apr 2019 17:07:59 +0000 (UTC)
commit e7bae33a8115b1a3e62dbb76670aa530781dae7b
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Mon Apr 22 17:10:11 2019 +0200
Fix using wrong entry of title widget
src/ephy-window.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 769cb076b..d4394cc94 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1861,10 +1861,12 @@ ephy_window_configure_for_view (EphyWindow *window,
chrome |= EPHY_WINDOW_CHROME_HEADER_BAR;
if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) != EPHY_EMBED_SHELL_MODE_APPLICATION) {
- GtkWidget *entry;
+ GtkWidget *title_widget;
+ EphyLocationEntry *lentry;
- entry = GTK_WIDGET (ephy_header_bar_get_title_widget (EPHY_HEADER_BAR (window->header_bar)));
- gtk_editable_set_editable (GTK_EDITABLE (entry), FALSE);
+ title_widget = GTK_WIDGET (ephy_header_bar_get_title_widget (EPHY_HEADER_BAR (window->header_bar)));
+ lentry = EPHY_LOCATION_ENTRY (title_widget);
+ gtk_editable_set_editable (GTK_EDITABLE (ephy_location_entry_get_entry (lentry)), FALSE);
if (webkit_window_properties_get_menubar_visible (properties))
chrome |= EPHY_WINDOW_CHROME_MENU;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]