[Xfce4-commits] <midori:master> Due to GtkOverlay there's another parent widget
Christian Dywan
noreply at xfce.org
Sun Mar 25 18:50:01 CEST 2012
Updating branch refs/heads/master
to f7d85602f84f43e20495f7a1150a9dda5b038eea (commit)
from 5cb1c044816096b6f96e2afa963d81a5f9360b2c (commit)
commit f7d85602f84f43e20495f7a1150a9dda5b038eea
Author: André Stösel <andre at stoesel.de>
Date: Sun Mar 25 18:36:56 2012 +0200
Due to GtkOverlay there's another parent widget
midori/midori-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index e8e6c22..4a9fb4c 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -2793,7 +2793,11 @@ static gboolean
webkit_web_view_web_view_ready_cb (GtkWidget* web_view,
MidoriView* view)
{
+ #if GTK_CHECK_VERSION(3, 2, 0)
+ GtkWidget* new_view = gtk_widget_get_parent (gtk_widget_get_parent (gtk_widget_get_parent (web_view)));
+ #else
GtkWidget* new_view = gtk_widget_get_parent (gtk_widget_get_parent (web_view));
+ #endif
MidoriNewView where = MIDORI_NEW_VIEW_TAB;
/* FIXME: Open windows opened by scripts in tabs if they otherwise
More information about the Xfce4-commits
mailing list