[epiphany] web-view: use existing mechanism for clearing sensitive form info bar
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] web-view: use existing mechanism for clearing sensitive form info bar
- Date: Sat, 4 Mar 2017 19:54:23 +0000 (UTC)
commit dda2a9978363b12df147b10627638134b748c0c0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Mar 4 13:49:32 2017 -0600
web-view: use existing mechanism for clearing sensitive form info bar
It looks a bit better for it to be cleared in load committed, not load
started, and it's better to reuse the support we already have for this.
embed/ephy-web-view.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 92ece2e..5db3f3c 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -800,7 +800,7 @@ sensitive_form_focused_cb (EphyEmbedShell *shell,
track_info_bar (info_bar, &web_view->sensitive_form_info_bar);
ephy_embed_add_top_widget (EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (web_view),
- info_bar, FALSE);
+ info_bar, TRUE);
gtk_widget_show (info_bar);
}
@@ -1707,12 +1707,6 @@ load_changed_cb (WebKitWebView *web_view,
/* Zoom level. */
restore_zoom_level (view, loading_uri);
-
- if (view->sensitive_form_info_bar) {
- gtk_widget_destroy (view->sensitive_form_info_bar);
- untrack_info_bar (&view->sensitive_form_info_bar);
- }
-
break;
}
case WEBKIT_LOAD_REDIRECTED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]