[epiphany/gnome-3-22] embed: fix web inspector dock right button
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-22] embed: fix web inspector dock right button
- Date: Tue, 27 Sep 2016 12:05:13 +0000 (UTC)
commit dbb6b80fda3d68a5bf2a2d13a674b3c3007480b5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Tue Sep 27 14:03:08 2016 +0200
embed: fix web inspector dock right button
It's currently impossible to support dock to right if we handle inspector
attachment manually, because there is no WebKit API to tell Epiphany where
to dock the inspector. We needed to handle it manually in the past for
some legacy reason, but not anymore, so just remove this code.
embed/ephy-embed.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 4e5ce46..b12516e 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -508,19 +508,9 @@ static gboolean
ephy_embed_attach_inspector_cb (WebKitWebInspector *inspector,
EphyEmbed *embed)
{
- GtkWidget *inspector_view = GTK_WIDGET (webkit_web_inspector_get_web_view (inspector));
- int inspected_view_height;
- guint attached_height;
-
- inspected_view_height = gtk_widget_get_allocated_height (GTK_WIDGET (embed->web_view));
- attached_height = webkit_web_inspector_get_attached_height (inspector);
- gtk_paned_set_position (embed->paned, inspected_view_height - attached_height);
-
- gtk_paned_add2 (embed->paned, inspector_view);
- gtk_widget_show (inspector_view);
embed->inspector_loaded = TRUE;
- return TRUE;
+ return FALSE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]